[sr-dev] git:5.5:7323d812: mtree: check if pv_count var is r/w

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 1 11:09:28 CEST 2021


Module: kamailio
Branch: 5.5
Commit: 7323d812dc4a39c0e60f11668e09a50ef586a8f7
URL: https://github.com/kamailio/kamailio/commit/7323d812dc4a39c0e60f11668e09a50ef586a8f7

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/7323d812dc4a39c0e60f11668e09a50ef586a8f7.diff
Patch: https://github.com/kamailio/kamailio/commit/7323d812dc4a39c0e60f11668e09a50ef586a8f7.patch

---

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;




More information about the sr-dev mailing list