projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda37db
)
GSocks5Proxy: don't crash if parsing negotiation reply fails
author
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Thu, 2 May 2013 15:50:01 +0000
(16:50 +0100)
committer
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Thu, 2 May 2013 17:37:25 +0000
(18:37 +0100)
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
gio/gsocks5proxy.c
patch
|
blob
|
history
diff --git
a/gio/gsocks5proxy.c
b/gio/gsocks5proxy.c
index
9d9055f
..
0d6269e
100644
(file)
--- a/
gio/gsocks5proxy.c
+++ b/
gio/gsocks5proxy.c
@@
-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;