Commit 769e3edb authored by Simon McVittie's avatar Simon McVittie

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's avatarSimon McVittie <>
parent eda37dbc
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment