In the server case the final bit of the opcode must always be set.
When resuming a request that would take more than one packet, it was
not set.
---
 lib/obex_object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/obex_object.c b/lib/obex_object.c
index 6b2ed5d..6bfeabd 100644
--- a/lib/obex_object.c
+++ b/lib/obex_object.c
@@ -924,7 +924,7 @@ int obex_object_resume(obex_t *self, obex_object_t *object)
        cmd = (self->state & MODE_SRV) ? object->cmd :
                                                object->opcode & ~OBEX_FINAL;
 
-       ret = obex_object_send(self, object, TRUE, FALSE);
+       ret = obex_object_send(self, object, TRUE, self->state & MODE_SRV);
 
        if (ret < 0) {
                obex_deliver_event(self, OBEX_EV_LINKERR, cmd, 0, TRUE);
-- 
1.7.1.1


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to