From: hno <> Date: Fri, 24 Dec 2004 08:14:23 +0000 (+0000) Subject: Bug #1173: assertion failure: cbdata.cc:402 "c->locks > 0" X-Git-Tag: SQUID_3_0_PRE4~944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fddded8f1e50e9d81a975af724e1ac18196e611d;p=thirdparty%2Fsquid.git Bug #1173: assertion failure: cbdata.cc:402 "c->locks > 0" patch by Gonzalo Arana --- diff --git a/src/ACLChecklist.cc b/src/ACLChecklist.cc index dc56480c64..477bdfa70c 100644 --- a/src/ACLChecklist.cc +++ b/src/ACLChecklist.cc @@ -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);