Module: kamailio
Branch: 5.4
Commit: df8fb404c1f3d016f97872d78fe07d604de6ef8b
URL:
https://github.com/kamailio/kamailio/commit/df8fb404c1f3d016f97872d78fe07d6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-01T11:12:13+02:00
mtree: check if pv_count var is r/w
- reported by GH #2750
(cherry picked from commit 63b0345207ba67fcc6290d6dfc55f99ba58b13c9)
(cherry picked from commit 7323d812dc4a39c0e60f11668e09a50ef586a8f7)
---
Modified: src/modules/mtree/mtree_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/df8fb404c1f3d016f97872d78fe07d6…
Patch:
https://github.com/kamailio/kamailio/commit/df8fb404c1f3d016f97872d78fe07d6…
---
diff --git a/src/modules/mtree/mtree_mod.c b/src/modules/mtree/mtree_mod.c
index c04f031cfd..63180bbfb7 100644
--- a/src/modules/mtree/mtree_mod.c
+++ b/src/modules/mtree/mtree_mod.c
@@ -203,7 +203,7 @@ static int mod_init(void)
}
if(pv_parse_spec(&count_param, &pv_count) < 0
- || !(pv_is_w(&pv_weight)))
+ || !(pv_is_w(&pv_count)))
{
LM_ERR("cannot parse count pv or pv is read-only\n");
return -1;