--------------------- PatchSet 6839 Date: 2008/02/16 06:11:41 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: . Members: lib/IPAddress.cc:1.1.2.80->1.1.2.81 Index: squid3/lib/IPAddress.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/IPAddress.cc,v retrieving revision 1.1.2.80 retrieving revision 1.1.2.81 diff -u -r1.1.2.80 -r1.1.2.81 --- squid3/lib/IPAddress.cc 10 Feb 2008 11:10:16 -0000 1.1.2.80 +++ squid3/lib/IPAddress.cc 16 Feb 2008 06:11:41 -0000 1.1.2.81 @@ -1,5 +1,5 @@ /* - * $Id: IPAddress.cc,v 1.1.2.80 2008/02/10 11:10:16 amosjeffries Exp $ + * $Id: IPAddress.cc,v 1.1.2.81 2008/02/16 06:11:41 amosjeffries Exp $ * * DEBUG: section 14 IP Storage and Handling * AUTHOR: Amos Jeffries @@ -1093,9 +1093,8 @@ } else { debugs(14,1, HERE << "IPAddress::GetSockAddr : Cannot convert non-IPv4 to IPv4."); - memset(&buf,0xFFFFFFFF,sizeof(struct sockaddr_in)); - assert(false); + assert(IsIPv4()); } #else @@ -1211,6 +1210,6 @@ debugs(14,1, HERE << "IPAddress::GetInAddr : Cannot convert non-IPv4 to IPv4. IPA=" << *this); memset(&buf,0xFFFFFFFF,sizeof(struct in_addr)); - assert(false); + assert(!IsIPv4()); return false; }