summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitriy Paliy <dmitriy.paliy@nokia.com>2010-10-15 09:57:07 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-10-15 10:18:39 +0300
commit1276ac867758d83afef42d7d54c4848af3871b06 (patch)
tree3e5a54fc3222f087593b8ede0332c131bb93473c /src
parente445aa8e52e1a2603c835ebc6ceb909c6b7c2944 (diff)
downloadobexd-1276ac867758d83afef42d7d54c4848af3871b06.tar.gz
Fix regression on suspend on opening
This fixes regression on suspend on opening when obex_write_stream returns length of buffer, which is treated as error response afterwards.
Diffstat (limited to 'src')
-rw-r--r--src/obex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obex.c b/src/obex.c
index d1ac339..4e1db9c 100644
--- a/src/obex.c
+++ b/src/obex.c
@@ -683,7 +683,7 @@ add_header:
os->offset += len;
- return len;
+ return 0;
}
static gboolean handle_async_io(void *object, int flags, int err,