[sr-dev] git:master:a8d56242: ims_dialog: updated test conditions

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 8 09:38:09 CET 2022


Module: kamailio
Branch: master
Commit: a8d56242da48708949149c11c06d031b5c2fad49
URL: https://github.com/kamailio/kamailio/commit/a8d56242da48708949149c11c06d031b5c2fad49

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-02-08T09:14:08+01:00

ims_dialog: updated test conditions

- GH #3014

---

Modified: src/modules/ims_dialog/dlg_hash.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a8d56242da48708949149c11c06d031b5c2fad49.diff
Patch: https://github.com/kamailio/kamailio/commit/a8d56242da48708949149c11c06d031b5c2fad49.patch

---

diff --git a/src/modules/ims_dialog/dlg_hash.c b/src/modules/ims_dialog/dlg_hash.c
index bc32282d9e..cfe0148e7b 100644
--- a/src/modules/ims_dialog/dlg_hash.c
+++ b/src/modules/ims_dialog/dlg_hash.c
@@ -253,7 +253,7 @@ void destroy_dlg(struct dlg_cell *dlg) {
         shm_free(var);
     }
 
-    if (&(dlg->dlg_entry_out)) {
+    if (dlg->dlg_entry_out.first) {
         lock_get(dlg->dlg_out_entries_lock);
         destroy_entry_out(&(dlg->dlg_entry_out));
         lock_release(dlg->dlg_out_entries_lock);




More information about the sr-dev mailing list