mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 16:54:38 +08:00
gobex: Fix use after free
transfer_complete() frees transfer pointer.
This commit is contained in:
parent
dfd54b9eaa
commit
6df15b5415
@ -378,6 +378,7 @@ static void transfer_put_req_first(struct transfer *transfer, GObexPacket *req,
|
||||
if (!g_obex_send(transfer->obex, rsp, &err)) {
|
||||
transfer_complete(transfer, err);
|
||||
g_error_free(err);
|
||||
return;
|
||||
}
|
||||
|
||||
if (rspcode != G_OBEX_RSP_CONTINUE)
|
||||
|
Loading…
Reference in New Issue
Block a user