mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gdtlsconnection: Fix a check for a vfunc being implemented
It was checking the wrong vfunc; likely a copy/paste error. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
8312f0b7cf
commit
be57c5d14c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user