mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Don't finish gtls connection if the handshake failed
https://bugzilla.gnome.org/show_bug.cgi?id=656283
This commit is contained in:
parent
ae496a52a9
commit
a9ca74efb1
@ -1151,6 +1151,8 @@ g_socket_client_tls_handshake_callback (GObject *object,
|
|||||||
{
|
{
|
||||||
g_object_unref (data->connection);
|
g_object_unref (data->connection);
|
||||||
data->connection = G_IO_STREAM (object);
|
data->connection = G_IO_STREAM (object);
|
||||||
|
|
||||||
|
g_socket_client_async_connect_complete (data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1162,8 +1164,6 @@ g_socket_client_tls_handshake_callback (GObject *object,
|
|||||||
|
|
||||||
enumerator_next_async (data);
|
enumerator_next_async (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_socket_client_async_connect_complete (data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user