Module: kamailio
Branch: 5.3
Commit: 17eaef0164eec06cadeb4fb903df57d9c613157a
URL:
https://github.com/kamailio/kamailio/commit/17eaef0164eec06cadeb4fb903df57d…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-10-03T17:01:28Z
dialog: fix error in dlg.list_match for callid parameter (reported from Ilie Soltanici)
(cherry picked from commit 360e012d9d93c80b62b6e75bfac6e3340407ee98)
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/17eaef0164eec06cadeb4fb903df57d…
Patch:
https://github.com/kamailio/kamailio/commit/17eaef0164eec06cadeb4fb903df57d…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index b849cfbb6c..3975477571 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2655,7 +2655,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);