]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Oops.. got the auth logics slightly wrong..
authorhno <>
Mon, 17 Jun 2002 01:32:01 +0000 (01:32 +0000)
committerhno <>
Mon, 17 Jun 2002 01:32:01 +0000 (01:32 +0000)
src/acl.cc

index 0b33f1eb5504395fbbe668d86f23d51d7961a8e0..2c75499cf1edf99fb955b46846ab25891c7993ba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.277 2002/06/16 17:46:25 hno Exp $
+ * $Id: acl.cc,v 1.278 2002/06/16 19:32:01 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -1654,7 +1654,7 @@ aclMatchAcl(acl * ae, aclCheck_t * checklist)
        /* NOTREACHED */
     case ACL_PROXY_AUTH:
     case ACL_PROXY_AUTH_REGEX:
-       if ((ti = aclAuthenticated(checklist)) != 0)
+       if ((ti = aclAuthenticated(checklist)) != 1)
            return ti;
        ti = aclMatchProxyAuth(ae->data, checklist->auth_user_request,
            checklist, ae->type);
@@ -1662,7 +1662,7 @@ aclMatchAcl(acl * ae, aclCheck_t * checklist)
        return ti;
        /* NOTREACHED */
     case ACL_MAX_USER_IP:
-       if ((ti = aclAuthenticated(checklist)) != 0)
+       if ((ti = aclAuthenticated(checklist)) != 1)
            return ti;
        ti = aclMatchUserMaxIP(ae->data, checklist->auth_user_request,
            checklist->src_addr);