]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #860: ACL based logging does not work
authorhno <>
Mon, 18 Oct 2004 18:12:54 +0000 (18:12 +0000)
committerhno <>
Mon, 18 Oct 2004 18:12:54 +0000 (18:12 +0000)
src/ACLChecklist.cc
src/access_log.cc

index 26d2207847f0d5ffadea413e36609ead0d5fc62a..08a69081f4194a9a4d1b5948f014281214c8c0be 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.17 2004/08/30 03:28:56 robertc Exp $
+ * $Id: ACLChecklist.cc,v 1.18 2004/10/18 12:12:54 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -255,6 +255,7 @@ ACLChecklist::matchAclList(const acl_list * head, bool const fast)
             changeState(NullState::Instance());
 
         if (!nodeMatched || state_ != NullState::Instance()) {
+            finished_ = false;
             debug(28, 3) ("aclmatchAclList: %p returning false (AND list entry failed to match)\n", this);
             checkForAsync();
             PROF_stop(aclMatchAclList);
index b48798db47de5a40f82897b5c327a28d69d9009c..931153a1d618909ee4227c70df4554bc2a1702e3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.96 2003/10/16 21:40:16 robertc Exp $
+ * $Id: access_log.cc,v 1.97 2004/10/18 12:12:54 hno Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -1336,7 +1336,7 @@ accessLogLog(AccessLogEntry * al, ACLChecklist * checklist)
         xstrncpy(al->hier.host, dash_str, SQUIDHOSTNAMELEN);
 
     for (log = Config.Log.accesslogs; log; log = log->next) {
-        if (checklist && log->aclList && checklist->matchAclListFast(log->aclList))
+        if(checklist && log->aclList && !checklist->matchAclListFast(log->aclList))
             continue;
 
         switch (log->type) {