[glib] Don't finish gtls connection if the handshake failed



commit a9ca74efb11bda0a90f482a44bb2ec214744ecc6
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Wed Aug 10 15:56:13 2011 +0200

    Don't finish gtls connection if the handshake failed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656283

 gio/gsocketclient.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index 21bb7d9..814f0e8 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -1151,6 +1151,8 @@ g_socket_client_tls_handshake_callback (GObject      *object,
     {
       g_object_unref (data->connection);
       data->connection = G_IO_STREAM (object);
+
+      g_socket_client_async_connect_complete (data);
     }
   else
     {
@@ -1162,8 +1164,6 @@ g_socket_client_tls_handshake_callback (GObject      *object,
 
       enumerator_next_async (data);
     }
-
-  g_socket_client_async_connect_complete (data);
 }
 
 static void



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