Module: sip-router
Branch: master
Commit: 34d9088d74cb8269960cc20912a675a67598e7d7
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=34d9088d74cb8269960cc20912a675a67598e7d7

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Tue Jan  7 10:23:11 2014 +0100

permissions: fixed previous commit which used invalid variable

- reported by Kelvin Chua

---

 modules/permissions/hash.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/permissions/hash.c b/modules/permissions/hash.c
index b8daeb1..ab09bf1 100644
--- a/modules/permissions/hash.c
+++ b/modules/permissions/hash.c
@@ -729,8 +729,8 @@ int find_group_in_subnet_table(struct subnet* table,
                if ( ((table[i].port == port) || (table[i].port == 0))
                        && (ip_addr_match_net(addr, &table[i].subnet, 
table[i].mask)==0))
                {
-                       if (tag_avp.n && np->tag.s) {
-                               val.s = np->tag;
+                       if (tag_avp.n && table[i].tag.s) {
+                               val.s = table[i].tag;
                                if (add_avp(tag_avp_type|AVP_VAL_STR, tag_avp, 
val) != 0) {
                                        LM_ERR("setting of tag_avp failed\n");
                                        return -1;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to