Module: kamailio
Branch: 5.5
Commit: 7323d812dc4a39c0e60f11668e09a50ef586a8f7
URL:
https://github.com/kamailio/kamailio/commit/7323d812dc4a39c0e60f11668e09a50…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-01T10:57:54+02:00
mtree: check if pv_count var is r/w
- reported by GH #2750
(cherry picked from commit 63b0345207ba67fcc6290d6dfc55f99ba58b13c9)
---
Modified: src/modules/mtree/mtree_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7323d812dc4a39c0e60f11668e09a50…
Patch:
https://github.com/kamailio/kamailio/commit/7323d812dc4a39c0e60f11668e09a50…
---
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;