Message ID | 20220629051902.23452-1-wangyouwan@uniontech.com |
---|---|
State | New |
Headers | show |
Series | obexd: fix crashed after cancel the on-going transfer | expand |
diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c index c94d018b2..03af4a14b 100644 --- a/gobex/gobex-transfer.c +++ b/gobex/gobex-transfer.c @@ -186,6 +186,9 @@ static void transfer_response(GObex *obex, GError *err, GObexPacket *rsp, gboolean rspcode, final; guint id; + if (!g_slist_find(transfers, transfer)) + return; + g_obex_debug(G_OBEX_DEBUG_TRANSFER, "transfer %u", transfer->id); id = transfer->req_id;