Module: kamailio
Branch: master
Commit: 8eda24052be7f1a955074996245668b2c749fb4b
URL:
https://github.com/kamailio/kamailio/commit/8eda24052be7f1a955074996245668b…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2015-02-26T22:04:10+01:00
dialog_ng: Safety check on create_cbs
---
Modified: modules/dialog_ng/dlg_cb.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8eda24052be7f1a955074996245668b…
Patch:
https://github.com/kamailio/kamailio/commit/8eda24052be7f1a955074996245668b…
---
diff --git a/modules/dialog_ng/dlg_cb.c b/modules/dialog_ng/dlg_cb.c
index ebbf5d6..3365e7b 100644
--- a/modules/dialog_ng/dlg_cb.c
+++ b/modules/dialog_ng/dlg_cb.c
@@ -235,7 +235,7 @@ void run_create_callbacks(struct dlg_cell *dlg, struct sip_msg *msg)
{
struct dlg_callback *cb;
- if (create_cbs==NULL || create_cbs->first==NULL)
+ if (create_cbs==NULL || create_cbs==POINTER_CLOSED_MARKER ||
create_cbs->first==NULL)
return;
params.req = msg;