--------------------- PatchSet 5240 Date: 2007/08/11 01:11:48 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Add some asserts to drag rare segfault back to cause position. Members: lib/IPAddress.cc:1.1.2.59->1.1.2.60 Index: squid3/lib/IPAddress.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/Attic/IPAddress.cc,v retrieving revision 1.1.2.59 retrieving revision 1.1.2.60 diff -u -r1.1.2.59 -r1.1.2.60 --- squid3/lib/IPAddress.cc 5 Aug 2007 12:30:25 -0000 1.1.2.59 +++ squid3/lib/IPAddress.cc 11 Aug 2007 01:11:48 -0000 1.1.2.60 @@ -1,6 +1,6 @@ /* - * $Id: IPAddress.cc,v 1.1.2.59 2007/08/05 12:30:25 amosjeffries Exp $ + * $Id: IPAddress.cc,v 1.1.2.60 2007/08/11 01:11:48 amosjeffries Exp $ * * DEBUG: section 14 IP Storage and Handling * AUTHOR: Amos Jeffries @@ -724,6 +724,7 @@ case AF_INET: ipv4 = (sockaddr_in*)(s.ai_addr); /* this */ + assert(ipv4); operator=(*ipv4); break; @@ -731,6 +732,7 @@ ipv6 = (sockaddr_in6*)(s.ai_addr); #if USE_IPV6 /* this */ + assert(ipv6); operator=(*ipv6); #else