Browse code

permissions: fixed previous commit which used invalid variable

- reported by Kelvin Chua

(cherry picked from commit 34d9088d74cb8269960cc20912a675a67598e7d7)

Daniel-Constantin Mierla authored on 07/01/2014 09:23:11
Showing 1 changed files
... ...
@@ -729,8 +729,8 @@ int find_group_in_subnet_table(struct subnet* table,
729 729
 		if ( ((table[i].port == port) || (table[i].port == 0))
730 730
 			&& (ip_addr_match_net(addr, &table[i].subnet, table[i].mask)==0))
731 731
 		{
732
-			if (tag_avp.n && np->tag.s) {
733
-				val.s = np->tag;
732
+			if (tag_avp.n && table[i].tag.s) {
733
+				val.s = table[i].tag;
734 734
 				if (add_avp(tag_avp_type|AVP_VAL_STR, tag_avp, val) != 0) {
735 735
 					LM_ERR("setting of tag_avp failed\n");
736 736
 					return -1;