]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Clan up ip acl mask assignment
authorhno <>
Wed, 26 Sep 2007 15:08:44 +0000 (15:08 +0000)
committerhno <>
Wed, 26 Sep 2007 15:08:44 +0000 (15:08 +0000)
src/ACLIP.cc

index b0e9413b45dd59bd537e13ccfd17e9e1420e1084..6bc249221e762389c04e50964600567e6952ebcb 100644 (file)
@@ -293,9 +293,8 @@ acl_ip_data::FactoryParse(const char *t)
         return NULL;
     }
 
-    /* Decode mask */
-    DecodeMask(NULL, &q->mask);
-    if (*mask && !DecodeMask(mask, &q->mask)) {
+    /* Decode mask (NULL or empty means a exact host mask) */
+    if (!DecodeMask(mask, &q->mask)) {
         debugs(28, 0, "aclParseIpData: unknown netmask '" << mask << "' in '" << t << "'");
         delete q;
         self_destruct();