From: Nathan Hoad Date: Fri, 29 Nov 2013 23:44:28 +0000 (-0700) Subject: Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName). X-Git-Tag: SQUID_3_5_0_1~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5f792a938823550b178deef4623e1da0f162fa;p=thirdparty%2Fsquid.git Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName). Related to Bug 3972 fix in r13156. --- diff --git a/src/acl/Gadgets.cc b/src/acl/Gadgets.cc index 884f7a0886..e4e3e6b3bb 100644 --- a/src/acl/Gadgets.cc +++ b/src/acl/Gadgets.cc @@ -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;