[glib: 1/2] gdtlsconnection: Fix a check for a vfunc being implemented




commit be57c5d14c771361482917f4cb35851a07d19a8e
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Apr 29 13:17:05 2021 +0100

    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>

 gio/gdtlsconnection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]