From: Amos Jeffries Date: Thu, 17 Nov 2011 09:42:02 +0000 (-0700) Subject: Fix assertion when dstdomain abused in access controls X-Git-Tag: SQUID_3_1_17~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a9843e3856f76f41a75d9e846618de50b2bf37;p=thirdparty%2Fsquid.git Fix assertion when dstdomain abused in access controls This converts an assertion into a logged warning and a failed-match if dstdomain ACLs are used in places where the HTTP request is not available. --- diff --git a/src/acl/DestinationDomain.h b/src/acl/DestinationDomain.h index 3245fdea56..e62d7234ff 100644 --- a/src/acl/DestinationDomain.h +++ b/src/acl/DestinationDomain.h @@ -47,6 +47,7 @@ class ACLDestinationDomainStrategy : public ACLStrategy public: virtual int match (ACLData * &, ACLFilledChecklist *); static ACLDestinationDomainStrategy *Instance(); + virtual bool requiresRequest() const {return true;} /** * Not implemented to prevent copies of the instance.