GSocks5Proxy: don't crash if parsing negotiation reply fails

The GError should be initialized to NULL, otherwise we'll
"pile up" errors, then try to free an uninitialized pointer.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=699493
This commit is contained in:
Simon McVittie 2013-05-02 16:50:01 +01:00
parent eda37dbc3f
commit 769e3edbe0

View File

@ -708,7 +708,7 @@ nego_reply_read_cb (GObject *source,
if (data->offset == data->length)
{
GError *error;
GError *error = NULL;
gboolean must_auth = FALSE;
gboolean has_auth = data->username || data->password;