]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/htcp.cc
Minimize direct comparisons with ACCESS_ALLOWED and ACCESS_DENIED.
[thirdparty/squid.git] / src / htcp.cc
index 7ebc44fcaf5942fdf6e0af7c1ed184bb74b1cc38..d199c0b7ae4804ffec05776791247ec4cc76b6df 100644 (file)
@@ -775,7 +775,7 @@ htcpAccessAllowed(acl_access * acl, const htcpSpecifier::Pointer &s, Ip::Address
     ACLFilledChecklist checklist(acl, s->request.getRaw(), nullptr);
     checklist.src_addr = from;
     checklist.my_addr.setNoAddr();
-    return (checklist.fastCheck() == ACCESS_ALLOWED);
+    return checklist.fastCheck().allowed();
 }
 
 static void