Merge branch 'gdtlsconnection-vfunc-check' into 'master'

gdtlsconnection: Fix a check for a vfunc being implemented

See merge request GNOME/glib!2075
This commit is contained in:
Sebastian Dröge 2021-04-29 13:06:06 +00:00
commit 2b3848dd7e

View File

@ -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);