Re: [PATCH BlueZ 1/2] obexd/client: Fix calling g_obex_cancel_req for completed requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Apr 7, 2014 at 2:03 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> 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 | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
> index 3564a34..bd2b1ab 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;
>         }
> --
> 1.9.0

Pushed.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux