]> 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:58 +0000 (02:18 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 Nov 2013 09:18:58 +0000 (02:18 -0700)
Related to Bug 3972 fix

src/acl/Gadgets.cc

index 1f4c864fbdfae4a286c618c7494f4c0e759cf3c2..4113eed4adab356338608ee63dabac0a5ee20fc1 100644 (file)
@@ -87,10 +87,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;