]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).
authorNathan Hoad <nathan@getoffmalawn.com>
Sat, 30 Nov 2013 09:18:21 +0000 (02:18 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 Nov 2013 09:18:21 +0000 (02:18 -0700)
Related to Bug 3972 fix in r13156.

src/acl/Gadgets.cc

index 28583763d72eaf407ec04bf72e662b080b02bbe0..deb002496a13ca15ec879fac21f25f592fe7a27e 100644 (file)
@@ -88,10 +88,12 @@ aclGetDenyInfoPage(AclDenyInfoList ** head, const char *name, int redirect_allow
 int
 aclIsProxyAuth(const char *name)
 {
-    debugs(28, 5, "aclIsProxyAuth: called for " << name);
-
-    if (NULL == name)
+    if (!name) {
+        debugs(28, 3, "false due to a NULL name");
         return false;
+    }
+
+    debugs(28, 5, "aclIsProxyAuth: called for " << name);
 
     ACL *a;