diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-06 00:49:09 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:59 +0100 |
commit | 0c9201a4168e26249d572856d66b2619cc3738d0 (patch) | |
tree | dd109c66dd3691720f6673a65e945ebaa4f41d61 /gobex/gobex-packet.c | |
parent | 10dfec83a1c75301ca8db826cdfecb7360e05318 (diff) | |
download | bluez-0c9201a4168e26249d572856d66b2619cc3738d0.tar.gz |
gobex: Fix also response code for on-demand data based packets
Diffstat (limited to 'gobex/gobex-packet.c')
-rw-r--r-- | gobex/gobex-packet.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c index b3165530f..0e6528edf 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; } |