Browse code

topos: check if event field exists for NOTIFY

(cherry picked from commit 317ddc9efa2f11f0fe3787e9ab462550724954ed)

Daniel-Constantin Mierla authored on 26/04/2021 11:43:21
Showing 1 changed files
... ...
@@ -1110,7 +1110,7 @@ int tps_db_load_branch(sip_msg_t *msg, tps_data_t *md, tps_data_t *sd,
1110 1110
 
1111 1111
 	if((get_cseq(msg)->method_id == METHOD_SUBSCRIBE)
1112 1112
 			|| ((get_cseq(msg)->method_id == METHOD_NOTIFY)
1113
-				&& (msg->event->len > 0))) {
1113
+				&& (msg->event && msg->event->len > 0))) {
1114 1114
 		bInviteDlg = 0;
1115 1115
 	}
1116 1116