Diff between 9866ce8d5519e4e798b66ffaa8a8878ffdb25383 and d9586a86b4f846df791f14bcc9040e00ffc52fa9

Changed Files

File Additions Deletions Status
obexd/src/obex.c +1 -0 modified

Full Patch

diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index 3a30605..3e68a62 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -444,6 +444,7 @@ static gint obex_write_stream(struct obex_session *os,
 		gint err = errno;
 		error("read(): %s (%d)", strerror(err), err);
 		g_free(os->buf);
+		os->buf = NULL;
 		return -err;
 	}