Thread (2 messages) 2 messages, 2 authors, 2012-02-14

[PATCH BlueZ] attrib-server: Fix invalid read

flat view
STALE5359d

From: Claudio Takahasi <hidden>
Date: 2012-02-09 16:02:21
Subsystem: the rest · Maintainer: Linus Torvalds

This patch fixes an invalid read for incoming connections when
the remote initiates the link disconnection.
---
 src/attrib-server.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 5137bdc..6268fe4 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -1124,7 +1124,6 @@ static void connect_event(GIOChannel *io, GError *gerr, void *user_data)
 
 	attrib = g_attrib_new(io);
 	attrib_channel_attach(attrib);
-	g_io_channel_unref(io);
 	g_attrib_unref(attrib);
 }
 
-- 
1.7.8.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help