Don't finish gtls connection if the handshake failed
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 10 Aug 2011 13:56:13 +0000 (15:56 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 13 Aug 2011 20:15:11 +0000 (16:15 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=656283

gio/gsocketclient.c

index 21bb7d9..814f0e8 100644 (file)
@@ -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