Commit cb283114 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix crash when cancelling a request that is already finished

parent 91578579
......@@ -464,7 +464,7 @@ void belle_http_provider_cancel_request(belle_http_provider_t *obj, belle_http_r
if (req->channel){
// Keep the list of the outgoing messages of the channel...
outgoing_messages = belle_sip_list_copy_with_data(req->channel->outgoing_messages,(void* (*)(void*))belle_sip_object_ref);
if (outgoing_messages->data == req){
if (outgoing_messages && outgoing_messages->data == req){
/*our request didn't go out; so drop it.*/
outgoing_messages = belle_sip_list_remove(outgoing_messages ,req);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment