Diff between 10dfec83a1c75301ca8db826cdfecb7360e05318 and 0c9201a4168e26249d572856d66b2619cc3738d0
Changed Files
| File | Additions | Deletions | Status |
| gobex/gobex-packet.c | +5 | -1 | modified |
Full Patch
diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c
index b316553..0e6528e 100644
--- a/gobex/gobex-packet.c
+++ b/gobex/gobex-packet.c
@@ -336,8 +336,12 @@ gssize g_obex_packet_encode(GObexPacket *pkt, guint8 *buf, gsize len)
ret = get_body(pkt, buf + count, len - count);
if (ret < 0)
return ret;
- if (ret == 0)
+ if (ret == 0) {
+ if (pkt->opcode == G_OBEX_RSP_CONTINUE)
+ buf[0] = G_OBEX_RSP_SUCCESS;
buf[0] |= FINAL_BIT;
+ }
+
count += ret + 3;
}