]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3226: Tags from external ACLs do not correctly expire
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 29 May 2011 12:14:42 +0000 (00:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 29 May 2011 12:14:42 +0000 (00:14 +1200)
src/external_acl.cc

index c661e5de7f9cd1b48f6fbd20ad54b7765cbc3e1a..516404da4eeb03e3959bb49058e3ff6015f1ca40 100644 (file)
@@ -800,12 +800,9 @@ aclMatchExternal(external_acl_data *acl, ACLFilledChecklist *ch)
 
             if (acl->def->theHelper->stats.queue_size <= (int)acl->def->theHelper->childs.n_active) {
                 debugs(82, 2, "aclMatchExternal: \"" << key << "\": queueing a call.");
-                ch->changeState (ExternalACLLookup::Instance());
-
-                if (entry == NULL) {
-                    debugs(82, 2, "aclMatchExternal: \"" << key << "\": return -1.");
-                    return -1;
-                }
+                ch->changeState(ExternalACLLookup::Instance());
+                debugs(82, 2, "aclMatchExternal: \"" << key << "\": return -1.");
+                return -1; // to get here we have to have an expired cache entry. MUST not use.
             } else {
                 if (!entry) {
                     debugs(82, 1, "aclMatchExternal: '" << acl->def->name <<