]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed bad pointer parameter to asnMatchIp(), asn code works fine now.
authorkostas <>
Wed, 31 Dec 1997 04:58:05 +0000 (04:58 +0000)
committerkostas <>
Wed, 31 Dec 1997 04:58:05 +0000 (04:58 +0000)
src/acl.cc
src/asn.cc

index 2df2e5c66b2461d43c5df5e872f827a54caa3e5a..72a303273242dbc7e042086dea44af8f37f6952c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.124 1997/12/30 02:46:35 wessels Exp $
+ * $Id: acl.cc,v 1.125 1997/12/30 21:58:05 kostas Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -1287,7 +1287,7 @@ aclMatchAcl(struct _acl *acl, aclCheck_t * checklist)
                acl->name, r->host);
            checklist->state[ACL_DST_ASN] = ACL_LOOKUP_NEEDED;
        } else {
-           return asnMatchIp(&acl->data, no_addr);
+           return asnMatchIp(&(acl->data), no_addr);
        }
        return 0;
 #if USE_ARP_ACL
index 5118acef6600c90697e319be17992420445809c5..862978ec638c2e33823acd30cae5c39143c8042c 100644 (file)
@@ -108,7 +108,7 @@ asnMatchIp(void *data, struct in_addr addr)
     lh = ntohl(addr.s_addr);
     debug(53, 4) ("asnMatchIp: Called for %s.\n", inet_ntoa(addr));
 
-    if (AS_tree_head == 0)
+    if (AS_tree_head == 0 || &addr==&no_addr)
        return 0;
     store_m_int(lh, m_addr);
     rn = rn_match(m_addr, AS_tree_head);