Module: kamailio
Branch: master
Commit: 4e614ba6b7a5663bd88f353a3ce7a0976d8e878f
URL:
https://github.com/kamailio/kamailio/commit/4e614ba6b7a5663bd88f353a3ce7a09…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2023-11-15T22:47:58-05:00
pua_dialoginfo: safety check for request pointer
---
Modified: src/modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4e614ba6b7a5663bd88f353a3ce7a09…
Patch:
https://github.com/kamailio/kamailio/commit/4e614ba6b7a5663bd88f353a3ce7a09…
---
diff --git a/src/modules/pua_dialoginfo/pua_dialoginfo.c
b/src/modules/pua_dialoginfo/pua_dialoginfo.c
index 9099f25df40..22a2fb11da7 100644
--- a/src/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/src/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -580,9 +580,10 @@ static void __dialog_sendpublish(
if(use_pubruri_avps
&& (refresh_pubruri_avps_flag > -1
- || (request->flags
- & (1U << (unsigned int)
- refresh_pubruri_avps_flag)))) {
+ || (request
+ && (request->flags
+ & (1U << (unsigned int)
+ refresh_pubruri_avps_flag))))) {
lock_release(&dlginfo->lock);
}
}