From ad8d85382faa6f8c167b6f8ec9e5952e60430b34 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 11 Nov 2011 16:29:05 +0200 Subject: [PATCH] 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. --- gobex/gobex.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.3