OSDN Git Service

obexd/client: Fix calling g_obex_cancel_req for completed requests
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 7 Apr 2014 10:37:54 +0000 (13:37 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 8 Apr 2014 13:27:49 +0000 (16:27 +0300)
commit1d23383bfee0cac5a9b4191af41a30246affe5e8
treef0b42335f8a5fe732dfca3e1a062d613922ae83a
parent07989af4f7ca7bf0a68a43f5c9d49ec67cefc50f
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
obexd/client/transfer.c