diff --git a/gio/gdtlsconnection.c b/gio/gdtlsconnection.c index 4bbc88d7a..136e317b1 100644 --- a/gio/gdtlsconnection.c +++ b/gio/gdtlsconnection.c @@ -1069,7 +1069,7 @@ g_dtls_connection_get_negotiated_protocol (GDtlsConnection *conn) GDtlsConnectionInterface *iface; iface = G_DTLS_CONNECTION_GET_INTERFACE (conn); - if (iface->set_advertised_protocols == NULL) + if (iface->get_negotiated_protocol == NULL) return NULL; return iface->get_negotiated_protocol (conn);