Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
GSocketClient: fix a crash on cancellation
Browse files Browse the repository at this point in the history
some code rearrangement when adding proxy support resulted in trying to
use a GSocket that wasn't there.

https://bugzilla.gnome.org/show_bug.cgi?id=628296
  • Loading branch information
danwinship committed Aug 30, 2010
1 parent b8ff287 commit a3cc274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gio/gsocketclient.c
Expand Up @@ -1083,6 +1083,9 @@ g_socket_client_socket_callback (GSocket *socket,
data->current_socket = NULL;
g_cancellable_set_error_if_cancelled (data->cancellable,
&data->last_error);

g_socket_client_async_connect_complete (data);
return FALSE;
}
else
{
Expand Down

0 comments on commit a3cc274

Please sign in to comment.