From: hno <> Date: Wed, 14 Nov 2001 01:50:43 +0000 (+0000) Subject: Fix coredump in aclCacheMatchAcl if proxy_auth_regex is used X-Git-Tag: SQUID_3_0_PRE1~1302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=054aa556210a26c00acdb8dba3448f69cf04719d;p=thirdparty%2Fsquid.git Fix coredump in aclCacheMatchAcl if proxy_auth_regex is used --- 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 */