]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug fix: When an AccessRule for a service group exist in AccessRules
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 16 Feb 2009 23:33:48 +0000 (01:33 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 16 Feb 2009 23:33:48 +0000 (01:33 +0200)
list do not add it again in the list.

src/adaptation/Config.cc

index d42a2818c37e9e1c9e0161913942d1e307589913..c2fb04882954307f659459290e6ddfe4899ecc56 100644 (file)
@@ -150,11 +150,11 @@ Adaptation::Config::ParseAccess(ConfigParser &parser)
     String groupId;
     ConfigParser::ParseString(&groupId);
     AccessRule *r;
-    if (!(r=FindRuleByGroupId(groupId)))
+    if (!(r=FindRuleByGroupId(groupId))) {
        r = new AccessRule(groupId);
-
+       AllRules().push_back(r);
+    }
     r->parse(parser);
-    AllRules().push_back(r);
 }
 
 void