This patch fixes the bug by checking for NULL in aclIsProxyAuth().
If access is denied due to receipt of a proxy request with
'httpd_accel_with_proxy off' then AclMatchedName is NULL.
clientAccessCheckDone() calls aclIsProxyAuth() with the NULL pointer,
so the check could go into either function. It was cleaner to put
it in aclIsProxyAuth().
/*
- * $Id: acl.cc,v 1.257 2001/08/03 16:54:51 wessels Exp $
+ * $Id: acl.cc,v 1.258 2001/08/21 05:54:13 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
int
aclIsProxyAuth(const char *name)
{
- acl *a = aclFindByName(name);
- if (a)
+ acl *a;
+ if (NULL == name)
+ return 0;
+ if ((a = aclFindByName(name)))
return a->type == ACL_PROXY_AUTH;
return 0;
}