[sr-dev] git:master:317ddc9e: topos: check if event field exists for NOTIFY

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 26 13:43:53 CEST 2021


Module: kamailio
Branch: master
Commit: 317ddc9efa2f11f0fe3787e9ab462550724954ed
URL: https://github.com/kamailio/kamailio/commit/317ddc9efa2f11f0fe3787e9ab462550724954ed

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-04-26T13:43:21+02:00

topos: check if event field exists for NOTIFY

---

Modified: src/modules/topos/tps_storage.c

---

Diff:  https://github.com/kamailio/kamailio/commit/317ddc9efa2f11f0fe3787e9ab462550724954ed.diff
Patch: https://github.com/kamailio/kamailio/commit/317ddc9efa2f11f0fe3787e9ab462550724954ed.patch

---

diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 21cb59c517..caff16c5ee 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;
 	}
 




More information about the sr-dev mailing list