]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix coredump in aclCacheMatchAcl if proxy_auth_regex is used
authorhno <>
Wed, 14 Nov 2001 01:50:43 +0000 (01:50 +0000)
committerhno <>
Wed, 14 Nov 2001 01:50:43 +0000 (01:50 +0000)
src/acl.cc

index 003e5457907a585ee5ed86deafcaa66d70c79aa6..22aaa3b58cd2cd83321ee199e101aefdaa9c669f 100644 (file)
@@ -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 */