]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix typo in rev.12859
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Jun 2013 10:01:13 +0000 (04:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Jun 2013 10:01:13 +0000 (04:01 -0600)
cbdataReference() is a macro with a design which means it requires usage
in the form of an assignment. ie a = cbdataReference(B); , or as a
parameter in equivalent to a variable.

Not using it in either of those manners results in syntax errors about a
',' from any strict compiler, and many older versions of GCC.

src/acl/Checklist.cc

index 6ce65b93c95387dbb617bb671eb546d5523dbf6e..9d4ccfb201c5d20cbcd4de29cc8c96550ad4ea3d 100644 (file)
@@ -291,11 +291,10 @@ ACLChecklist::fastCheck(const Acl::Tree * list)
     // tell whether this Checklist is used by some other concurent call, which
     // is not supported.
     assert(!accessList);
-    accessList = list;
+    accessList = cbdataReference(list);
 
     // assume DENY/ALLOW on mis/matches due to action-free accessList
     // matchAndFinish() takes care of the ALLOW case
-    cbdataReference(accessList); // required for cbdataReferenceValid()
     if (accessList && cbdataReferenceValid(accessList))
         matchAndFinish(); // calls markFinished() on success
     if (!finished())