From 317ddc9efa2f11f0fe3787e9ab462550724954ed Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 26 Apr 2021 13:43:21 +0200 Subject: [PATCH] topos: check if event field exists for NOTIFY --- src/modules/topos/tps_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c index 21cb59c5170..caff16c5ee7 100644 --- a/src/modules/topos/tps_storage.c +++ b/src/modules/topos/tps_storage.c @@ -1110,7 +1110,7 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd, if((get_cseq(msg)->method_id == METHOD_SUBSCRIBE) || ((get_cseq(msg)->method_id == METHOD_NOTIFY) - && (msg->event->len > 0))) { + && (msg->event && msg->event->len > 0))) { bInviteDlg = 0; }