[sr-dev] git:master:b5aae4f5: rls: safety check for dialog structur

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 28 12:15:30 CEST 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-04-28T12:15:12+02:00

rls: safety check for dialog structur

---

Modified: src/modules/rls/resource_notify.c

---

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

---

diff --git a/src/modules/rls/resource_notify.c b/src/modules/rls/resource_notify.c
index d3ad4fd1fc..0343a5c665 100644
--- a/src/modules/rls/resource_notify.c
+++ b/src/modules/rls/resource_notify.c
@@ -420,8 +420,9 @@ static void send_notifies(db1_res_t *result, int did_col, int resource_uri_col,
 
 	if(rlmi_doc)
 	{
-		LM_DBG("timer_send_notify at end len_est = %d resource_added = %d\n", len_est, resource_added);
-		if (resource_added == 1)
+		LM_DBG("timer notify at end len_est = %d resource_added = %d dlg = %p\n",
+				len_est, resource_added, dialog);
+		if (resource_added == 1 && dialog != NULL)
 		{
 			send_notify(&rlmi_doc, buf, buf_len, bstr, dialog, hash_code);
 		}




More information about the sr-dev mailing list