Module: kamailio
Branch: master
Commit: 6881faadec45dd16dd896b13db44862e7df70422
URL:
https://github.com/kamailio/kamailio/commit/6881faadec45dd16dd896b13db44862…
Author: Stefan Mititelu <stefan-cristian.mititelu(a)1and1.ro>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-07-19T15:04:25+02:00
dialog: set cbs list to NULL after destroying
---
Modified: src/modules/dialog/dlg_hash.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6881faadec45dd16dd896b13db44862…
Patch:
https://github.com/kamailio/kamailio/commit/6881faadec45dd16dd896b13db44862…
---
diff --git a/src/modules/dialog/dlg_hash.c b/src/modules/dialog/dlg_hash.c
index 2454940fee3..8e740003c24 100644
--- a/src/modules/dialog/dlg_hash.c
+++ b/src/modules/dialog/dlg_hash.c
@@ -365,8 +365,11 @@ void destroy_dlg(struct dlg_cell *dlg)
if(dlg_db_mode)
remove_dialog_from_db(dlg);
- if(dlg->cbs.first)
+ if(dlg->cbs.first) {
destroy_dlg_callbacks_list(dlg->cbs.first);
+ dlg->cbs.first = NULL;
+ dlg->cbs.types = 0;
+ }
if(dlg->profile_links)
destroy_linkers(dlg->profile_links);