gobex: Fix use after free

transfer_complete() frees transfer pointer.
This commit is contained in:
Andrei Emeltchenko 2014-08-01 11:44:34 +03:00 committed by Luiz Augusto von Dentz
parent dfd54b9eaa
commit 6df15b5415

View File

@ -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)