From 030de1f36fa116ec0ebef5454ba8a3908a6f69c0 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 17 May 2016 15:18:50 +0200 Subject: [PATCH] make sure dialog created by NOTIFY can be attached to a valid op --- coreapi/bellesip_sal/sal_impl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/bellesip_sal/sal_impl.c b/coreapi/bellesip_sal/sal_impl.c index 917faca7e..2bf146d97 100644 --- a/coreapi/bellesip_sal/sal_impl.c +++ b/coreapi/bellesip_sal/sal_impl.c @@ -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; }