Ooops another bug ??

From: Pedro Ribeiro <pribeiro@dont-contact.us>
Date: Mon, 24 Jan 2000 18:21:09 -0000

In squid2.3st1

With this acl:
>acl restricted src 10.0.0.128/255.0.0.128 10.85.0.0/16

the address 10.79.17.192 has the access permited in http_access

2000/01/24 18:07:23| aclMatchIp: '10.79.17.192' NOT found

Reversing the order of the parameters:
>acl restricted src 10.85.0.0/16 10.0.0.128/255.0.0.128

2000/01/24 18:09:56| aclMatchIp: '10.79.17.192' found

Adding some debug info i'v detected that in the first case the mask used in
the matching code of the first IP in the list is: 255.255.0.0 instead of
255.0.0.128

I know this aren't trivial masks but an and is an and, that should work
independent from the order of the ip's/masks in the list.

I guess there's some bug in the parser and (in the first case) the mask of
the second parameter is beeing used in the first ??

Best Regards

[]-------------------------------------------------------------[]
  Pedro Ribeiro
  Online: http://www.isel.pt/~pribeiro/
  IRC(PTnet) Nick: PAntMaR
  e-Mail: Personal: pribeiro@isel.pt / Admin: netadmin@isel.pt
  PGP Key Available in keyservers.
  PGPFP: E848 DCA3 5397 97EF 4CF9 2347 24BD BEF8 D104 1743
[]-------------------------------------------------------------[]
Received on Mon Jan 24 2000 - 11:30:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:40 MST