[PATCH BlueZ] attrib-server: Fix invalid read

Subsystems: the rest

STALE5359d

2 messages, 2 authors, 2012-02-14 · open the first message on its own page

[PATCH BlueZ] attrib-server: Fix invalid read

From: Claudio Takahasi <hidden>
Date: 2012-02-09 16:02:21

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

Re: [PATCH BlueZ] attrib-server: Fix invalid read

From: Johan Hedberg <hidden>
Date: 2012-02-14 12:13:44

Hi Claudio,

On Thu, Feb 09, 2012, Claudio Takahasi wrote:
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(-)
Applied. Thanks.

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help