Re: 1.2b20+first_set_patches coredumping

From: Duane Wessels <wessels@dont-contact.us>
Date: Wed, 20 May 1998 14:54:40 -0600

Mario Sergio Fujikawa Ferreira writes:

> I am running Squid 1.2b20 with the first_set_patches applied.
> Other than that, it is plain vanilla.
> Squid is core dumping about every hour.
> I have 2 squid 1.2b20 running on the local net and both exhibit
>the same behavior.
> This message I get in cache.log
>
> FATAL: Received Segment Violation...dying.

You found a bug in matchDomainName() by using full hostnames
with 'srcdomain' ACL entries. Try this patch:

Index: url.c
===================================================================
RCS file: /surf1/CVS/squid/src/url.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -w -u -r1.92 -r1.93
--- url.c 1998/05/11 18:44:47 1.92
+++ url.c 1998/05/20 20:46:50 1.93
@@ -391,9 +391,9 @@
        return 0; /* no match at all */
     if (*domain == '.')
        return 1;
- if (*(host + offset - 1) == '.')
- return 1;
     if (offset == 0)
+ return 1;
+ if (*(host + offset - 1) == '.')
        return 1;
     return 0;
 }

Duane W.
Received on Wed May 20 1998 - 13:57:21 MDT

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