From 23a9843e3856f76f41a75d9e846618de50b2bf37 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 17 Nov 2011 02:42:02 -0700 Subject: [PATCH] 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. --- src/acl/DestinationDomain.h | 1 + 1 file changed, 1 insertion(+) 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. -- 2.47.2