Diff between 9857369dc8f4cf2c957e5b5d98f4bfc8b1275886 and b39b605f320c56adbb3e5678fc1bb95059a0ebf5
Changed Files
| File | Additions | Deletions | Status |
| obexd/src/obex.c | +1 | -1 | modified |
Full Patch
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index 938937c..38c5ca6 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -580,7 +580,7 @@ static int obex_read_stream(struct obex_session *os, obex_t *obex,
os->size = OBJECT_SIZE_UNKNOWN;
/* If there's something to write and we are able to write it */
- if (os->pending > 0 && os->driver)
+ if (os->pending > 0 && os->driver && os->object)
goto write;
size = OBEX_ObjectReadStream(obex, obj, &buffer);