--------------------- PatchSet 4959 Date: 2007/06/30 08:04:10 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Catch case of unknown addrinfo family given for conversion and return proper result. Members: lib/IPAddress.cc:1.1.2.51->1.1.2.52 Index: squid3/lib/IPAddress.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/Attic/IPAddress.cc,v retrieving revision 1.1.2.51 retrieving revision 1.1.2.52 diff -u -r1.1.2.51 -r1.1.2.52 --- squid3/lib/IPAddress.cc 25 Jun 2007 09:23:30 -0000 1.1.2.51 +++ squid3/lib/IPAddress.cc 30 Jun 2007 08:04:10 -0000 1.1.2.52 @@ -1,6 +1,6 @@ /* - * $Id: IPAddress.cc,v 1.1.2.51 2007/06/25 09:23:30 amosjeffries Exp $ + * $Id: IPAddress.cc,v 1.1.2.52 2007/06/30 08:04:10 amosjeffries Exp $ * * DEBUG: section 14 IP Storage and Handling * AUTHOR: Amos Jeffries @@ -669,7 +669,6 @@ bool IPAddress::operator =(const struct addrinfo &s) { - struct sockaddr_in* ipv4 = NULL; struct sockaddr_in6* ipv6 = NULL; @@ -709,8 +708,10 @@ else return false; #endif - break; + + default: + return false; } return true;