--------------------- PatchSet 4929 Date: 2007/06/25 12:22:06 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Add missed case where CNAME returns and also has Additional A/AAAA records. Absence causes nasty hash failure. Members: src/ipcache.cc:1.9.2.30->1.9.2.31 Index: squid3/src/ipcache.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ipcache.cc,v retrieving revision 1.9.2.30 retrieving revision 1.9.2.31 diff -u -r1.9.2.30 -r1.9.2.31 --- squid3/src/ipcache.cc 24 Jun 2007 11:26:12 -0000 1.9.2.30 +++ squid3/src/ipcache.cc 25 Jun 2007 12:22:06 -0000 1.9.2.31 @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.9.2.30 2007/06/24 11:26:12 amosjeffries Exp $ + * $Id: ipcache.cc,v 1.9.2.31 2007/06/25 12:22:06 amosjeffries Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -532,7 +532,13 @@ i->flags.negcached = 0; - return i->addrs.count; + /* SPECIAL CASE: may get here IFF CNAME received with Additional records */ + /* reurn 0/'wait for further details' value. */ + /* NP: 'No DNS Results' is a return -1 +msg */ + if(cnames) + return 0; + else + return i->addrs.count; } #endif