mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
eda37dbc3f
commit
769e3edbe0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user