From: hno <> Date: Wed, 26 Sep 2007 15:08:44 +0000 (+0000) Subject: Clan up ip acl mask assignment X-Git-Tag: SQUID_3_0_RC1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2503e5e1b700cb611123afcead0b11c405957c55;p=thirdparty%2Fsquid.git Clan up ip acl mask assignment --- diff --git a/src/ACLIP.cc b/src/ACLIP.cc index b0e9413b45..6bc249221e 100644 --- a/src/ACLIP.cc +++ b/src/ACLIP.cc @@ -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();