From 054aa556210a26c00acdb8dba3448f69cf04719d Mon Sep 17 00:00:00 2001 From: hno <> Date: Wed, 14 Nov 2001 01:50:43 +0000 Subject: [PATCH] Fix coredump in aclCacheMatchAcl if proxy_auth_regex is used --- src/acl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/acl.cc b/src/acl.cc index 003e545790..22aaa3b58c 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.268 2001/10/24 06:55:43 hno Exp $ + * $Id: acl.cc,v 1.269 2001/11/13 18:50:43 hno Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -905,7 +905,7 @@ aclIsProxyAuth(const char *name) if (NULL == name) return 0; if ((a = aclFindByName(name))) - return a->type == ACL_PROXY_AUTH; + return a->type == ACL_PROXY_AUTH || a->type == ACL_PROXY_AUTH_REGEX; return 0; } @@ -1162,6 +1162,7 @@ aclCacheMatchAcl(dlink_list * cache, squid_acl acltype, void *data, break; case ACL_PROXY_AUTH_REGEX: matchrv = aclMatchRegex(data, MatchParam); + break; default: /* This is a fatal to ensure that aclCacheMatchAcl calls are _only_ * made for supported acl types */ -- 2.47.3