--------------------- PatchSet 1876 Date: 2001/04/10 13:24:51 Author: rvenning Branch: rvenning_tosaddracl Tag: (none) Log: testing revealed that the whole unsigned long thing didn't fix the problem (although it will be portable, unlike int.) The following makes it actually work. Members: src/acl.c:1.28.2.4->1.28.2.5 Index: squid/src/acl.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/acl.c,v retrieving revision 1.28.2.4 retrieving revision 1.28.2.5 diff -u -r1.28.2.4 -r1.28.2.5 --- squid/src/acl.c 10 Apr 2001 13:13:09 -0000 1.28.2.4 +++ squid/src/acl.c 10 Apr 2001 13:24:51 -0000 1.28.2.5 @@ -1,6 +1,6 @@ /* - * $Id: acl.c,v 1.28.2.4 2001/04/10 13:13:09 rvenning Exp $ + * $Id: acl.c,v 1.28.2.5 2001/04/10 13:24:51 rvenning Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -1002,7 +1002,11 @@ safe_inet_addr(t, (struct in_addr *)&trailer))) { /* we really do have a int on the end of the line, in 0x1234 or plain 1234 format */ - A->trailer = trailer; + struct in_addr tmp; + if (safe_inet_addr(t, &tmp)) + A->trailer = tmp.s_addr; + else + A->trailer = trailer; memFree(L, MEM_ACL_LIST); /* mistakenly allocated */ continue; } else {