GSocks5Proxy: don't crash if parsing negotiation reply fails
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 2 May 2013 15:50:01 +0000 (16:50 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 2 May 2013 17:37:59 +0000 (18:37 +0100)
commit0ba982e0589c2ae246dca760010d54bbca371399
tree0822f3921ba98c7dbdedd6e98b2c948d3097700c
parenta70f7cd0435be3588e1090464f2c9416b883834e
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>
Reviewed-by: Dan Winship <danw@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=699493
gio/gsocks5proxy.c