Module: kamailio
Branch: 5.7
Commit: c30e0a3a6dbe9b80b591ecb9caa53574ebc2988f
URL:
https://github.com/kamailio/kamailio/commit/c30e0a3a6dbe9b80b591ecb9caa5357…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2023-11-16T08:55:51-05:00
pua_dialoginfo: safety check for request pointer
(cherry picked from commit 4e614ba6b7a5663bd88f353a3ce7a0976d8e878f)
---
Modified: src/modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c30e0a3a6dbe9b80b591ecb9caa5357…
Patch:
https://github.com/kamailio/kamailio/commit/c30e0a3a6dbe9b80b591ecb9caa5357…
---
diff --git a/src/modules/pua_dialoginfo/pua_dialoginfo.c
b/src/modules/pua_dialoginfo/pua_dialoginfo.c
index deecc32f7e1..6efcdc0a880 100644
--- a/src/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/src/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -579,9 +579,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);
}
}