Module: kamailio
Branch: master
Commit: 63b0345207ba67fcc6290d6dfc55f99ba58b13c9
URL:
https://github.com/kamailio/kamailio/commit/63b0345207ba67fcc6290d6dfc55f99…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-28T13:54:08+02:00
mtree: check if pv_count var is r/w
- reported by GH #2750
---
Modified: src/modules/mtree/mtree_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/63b0345207ba67fcc6290d6dfc55f99…
Patch:
https://github.com/kamailio/kamailio/commit/63b0345207ba67fcc6290d6dfc55f99…
---
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;