From fc5f792a938823550b178deef4623e1da0f162fa Mon Sep 17 00:00:00 2001 From: Nathan Hoad Date: Fri, 29 Nov 2013 16:44:28 -0700 Subject: [PATCH] Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName). Related to Bug 3972 fix in r13156. --- src/acl/Gadgets.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.47.3