3 Jul 2010 01:26
[PATCH] Fix final bit not being set on a resumed request
Vinicius Costa Gomes <vinicius.gomes <at> openbossa.org>
2010-07-02 23:26:33 GMT
2010-07-02 23:26:33 GMT
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
<at> <at> -924,7 +924,7 <at> <at> 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
We have such files in
> OpenOBEX.
This still applies! All changes to cmake files will cause git to complain about
white-space errors. Some are resolved with --keep-cr but it still fails to get
this right in other places :-/
HS
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first --
RSS Feed