Browse code

mtree: check if pv_count var is r/w

- reported by GH #2750

(cherry picked from commit 63b0345207ba67fcc6290d6dfc55f99ba58b13c9)
(cherry picked from commit 7323d812dc4a39c0e60f11668e09a50ef586a8f7)

Daniel-Constantin Mierla authored on 28/05/2021 11:54:08
Showing 1 changed files
... ...
@@ -203,7 +203,7 @@ static int mod_init(void)
203 203
 	}
204 204
 
205 205
 	if(pv_parse_spec(&count_param, &pv_count) < 0
206
-			|| !(pv_is_w(&pv_weight)))
206
+			|| !(pv_is_w(&pv_count)))
207 207
 	{
208 208
 		LM_ERR("cannot parse count pv or pv is read-only\n");
209 209
 		return -1;