From: Nathan Hoad Date: Sat, 30 Nov 2013 09:18:58 +0000 (-0700) Subject: Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName). X-Git-Tag: SQUID_3_3_11~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=132c8c09de91f63926c86596129e95758874c766;p=thirdparty%2Fsquid.git Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName). Related to Bug 3972 fix --- diff --git a/src/acl/Gadgets.cc b/src/acl/Gadgets.cc index 1f4c864fbd..4113eed4ad 100644 --- a/src/acl/Gadgets.cc +++ b/src/acl/Gadgets.cc @@ -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;