summaryrefslogtreecommitdiff
path: root/gobex/gobex.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2011-11-11 16:29:05 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:04 +0100
commitad8d85382faa6f8c167b6f8ec9e5952e60430b34 (patch)
tree2997eb4bbd564fff33de4470e4a3979af3ad3710 /gobex/gobex.c
parentbc654c5048d6befe43ad7b2f6b002cf582d73b49 (diff)
downloadbluez-ad8d85382faa6f8c167b6f8ec9e5952e60430b34.tar.gz
gobex: fix sending Connection ID header in all requests
According to both OBEX and GOEP specs Connection ID should only be included in the first packet of a request.
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r--gobex/gobex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index e2d9c6c9c..8a23485eb 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -410,6 +410,9 @@ guint g_obex_send_req(GObex *obex, GObexPacket *req, gint timeout,
if (obex->conn_id == CONNID_INVALID)
goto create_pending;
+ if (obex->rx_last_op == G_OBEX_RSP_CONTINUE)
+ goto create_pending;
+
connid = g_obex_packet_get_header(req, G_OBEX_HDR_CONNECTION);
if (connid != NULL)
goto create_pending;