]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1173: assertion failure: cbdata.cc:402 "c->locks > 0"
authorhno <>
Fri, 24 Dec 2004 08:14:23 +0000 (08:14 +0000)
committerhno <>
Fri, 24 Dec 2004 08:14:23 +0000 (08:14 +0000)
patch by Gonzalo Arana

src/ACLChecklist.cc

index dc56480c64c4d804d54122f2353ceaa8b9412e91..477bdfa70cd52fee1c5fe3d54c8058f07540c89a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.23 2004/12/21 17:28:28 robertc Exp $
+ * $Id: ACLChecklist.cc,v 1.24 2004/12/24 01:14:23 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -419,7 +419,16 @@ ACLChecklist::fastCheck()
             return currentAnswer() == ACCESS_ALLOWED;
         }
 
-        accessList = accessList->next;
+        /*
+         * Reference the next access entry
+         */
+        const acl_access *A = accessList;
+
+        assert (A);
+
+        accessList = cbdataReference(A->next);
+
+        cbdataReferenceDone(A);
     }
 
     debug(28, 5) ("aclCheckFast: no matches, returning: %d\n", currentAnswer() == ACCESS_DENIED);