[sr-dev] git:master:360e012d: dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)

Henning Westerholt hw at skalatan.de
Sat Oct 3 19:00:25 CEST 2020


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

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-10-03T17:00:12Z

dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)

---

Modified: src/modules/dialog/dialog.c

---

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

---

diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 61e4b0cbcf..7e5b00425b 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2942,7 +2942,7 @@ static void rpc_dlg_list_match_ex(rpc_t *rpc, void *c, int with_context)
 		vkey = 1;
 	} else if(mkey.len==4 && strncmp(mkey.s, "turi", mkey.len)==0) {
 		vkey = 2;
-	} else if(mkey.len==5 && strncmp(mkey.s, "callid", mkey.len)==0) {
+	} else if(mkey.len==6 && strncmp(mkey.s, "callid", mkey.len)==0) {
 		vkey = 3;
 	} else {
 		LM_ERR("invalid key %.*s\n", mkey.len, mkey.s);




More information about the sr-dev mailing list