]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).
authorNathan Hoad <nathan@getoffmalawn.com>
Fri, 29 Nov 2013 23:44:28 +0000 (16:44 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 29 Nov 2013 23:44:28 +0000 (16:44 -0700)
Related to Bug 3972 fix in r13156.

src/acl/Gadgets.cc

index 884f7a088639708e83c7cdd31d6d1e7fd2ef47f3..e4e3e6b3bbacd51224b1eb7f07206466cfadcf4f 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;