make sure dialog created by NOTIFY can be attached to a valid op

This commit is contained in:
Jehan Monnier 2016-05-17 15:18:50 +02:00
parent 418999f925
commit 030de1f36f

View file

@ -240,7 +240,8 @@ static void process_request_event(void *ud, const belle_sip_request_event_t *eve
/*special case for Dialog created by notify mathing subscribe*/
belle_sip_transaction_t * sub_trans = belle_sip_dialog_get_last_transaction(dialog);
op = (SalOp*)belle_sip_transaction_get_application_data(sub_trans);
} else if (op==NULL || op->state==SalOpStateTerminated){
}
if (op==NULL || op->state==SalOpStateTerminated){
ms_warning("Receiving request for null or terminated op [%p], ignored",op);
return;
}