Module: kamailio
Branch: master
Commit: d4670ed58fb6e4325d5e3782f344237f8da5b70f
URL:
https://github.com/kamailio/kamailio/commit/d4670ed58fb6e4325d5e3782f344237…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-05T08:31:51+02:00
pua_dialoginfo: safety check for request pointer
---
Modified: src/modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d4670ed58fb6e4325d5e3782f344237…
Patch:
https://github.com/kamailio/kamailio/commit/d4670ed58fb6e4325d5e3782f344237…
---
diff --git a/src/modules/pua_dialoginfo/pua_dialoginfo.c
b/src/modules/pua_dialoginfo/pua_dialoginfo.c
index a1953ef238..10aa5b467d 100644
--- a/src/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/src/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -364,7 +364,8 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
}
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_get(&dlginfo->lock);
refresh_pubruri_avps(dlginfo, &uri);