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

fix crash when receiving a NOTIFY for a closed subscription.

parent 15d4773e
...@@ -181,7 +181,7 @@ static void process_request_event(void *sal, const belle_sip_request_event_t *ev ...@@ -181,7 +181,7 @@ static void process_request_event(void *sal, const belle_sip_request_event_t *ev
if (dialog) { if (dialog) {
op=(SalOp*)belle_sip_dialog_get_application_data(dialog); op=(SalOp*)belle_sip_dialog_get_application_data(dialog);
if (op==NULL && op->state==SalOpStateTerminated){ if (op==NULL || op->state==SalOpStateTerminated){
ms_warning("Receiving request for null or terminated op [%p], ignored",op); ms_warning("Receiving request for null or terminated op [%p], ignored",op);
return; return;
} }
......
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