diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-11-11 16:29:05 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-12 20:22:02 +0200 |
commit | dad80a1d6c3427e8b4d1f06f08f7278e0cbb4e43 (patch) | |
tree | e2ceece0ba0c3829d25c0852929279084ce5171c /gobex | |
parent | 907924ef12198f27a9eaa224ae1200dbc129e3b6 (diff) | |
download | obexd-dad80a1d6c3427e8b4d1f06f08f7278e0cbb4e43.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')
-rw-r--r-- | gobex/gobex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index e2d9c6c..8a23485 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; |