diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-07 13:37:54 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-04-08 16:27:49 +0300 |
commit | 1d23383bfee0cac5a9b4191af41a30246affe5e8 (patch) | |
tree | f0b42335f8a5fe732dfca3e1a062d613922ae83a /obexd | |
parent | 07989af4f7ca7bf0a68a43f5c9d49ec67cefc50f (diff) | |
download | bluez-1d23383bfee0cac5a9b4191af41a30246affe5e8.tar.gz |
obexd/client: Fix calling g_obex_cancel_req for completed requests
This leads to incorrect responses such as the following:
> ACL data: handle 12 flags 0x02 dlen 26
L2CAP(d): cid 0x0041 len 22 [psm 3]
RFCOMM(d): UIH: cr 0 dlci 38 pf 0 ilen 18 fcs 0xfd
OBEX: Get rsp(f): status 200 len 18
Status 200 = Success
Connection ID (0xcb) = 1
App. Parameters (0x4c) = Sequence length 4
End of Body (0x49) = Sequence length 0
< ACL data: handle 12 flags 0x00 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 3]
RFCOMM(d): UIH: cr 1 dlci 38 pf 0 ilen 3 fcs 0x27
OBEX: Get rsp(f): status 715 len 3
Diffstat (limited to 'obexd')
-rw-r--r-- | obexd/client/transfer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c index 3564a34ce..bd2b1abbe 100644 --- a/obexd/client/transfer.c +++ b/obexd/client/transfer.c @@ -698,6 +698,7 @@ static void get_xfer_progress_first(GObex *obex, GError *err, GObexPacket *rsp, } if (rspcode == G_OBEX_RSP_SUCCESS) { + transfer->req = 0; xfer_complete(obex, err, transfer); return; } |