--------------------- PatchSet 5164 Date: 2007/08/06 02:42:51 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Fix compile errors with external dnsserver helper. Members: src/ipcache.cc:1.9.2.37->1.9.2.38 Index: squid3/src/ipcache.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ipcache.cc,v retrieving revision 1.9.2.37 retrieving revision 1.9.2.38 diff -u -r1.9.2.37 -r1.9.2.38 --- squid3/src/ipcache.cc 5 Aug 2007 23:26:42 -0000 1.9.2.37 +++ squid3/src/ipcache.cc 6 Aug 2007 02:42:51 -0000 1.9.2.38 @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.9.2.37 2007/08/05 23:26:42 amosjeffries Exp $ + * $Id: ipcache.cc,v 1.9.2.38 2007/08/06 02:42:51 amosjeffries Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -357,7 +357,7 @@ memset(i->addrs.bad_mask, 0, sizeof(unsigned char) * ipcount); for (j = 0, k = 0; k < ipcount; k++) { - if ( A[k] = i->addrs.in_addrs[j] ) + if ( i->addrs.in_addrs[j] = A[k] ) j++; else debugs(14, 1, "ipcacheParse: Invalid IP address '" << A[k] << "' in response to '" << name << "'"); @@ -566,10 +566,12 @@ #else done = ipcacheParse(i, answers, na, error_message); -#endif /* If we have not produced either IPs or Error immediately, wait for recursion to finish. */ - if(done != 0 || error_message != NULL) { + if(done != 0 || error_message != NULL) +#endif + + { ipcacheAddEntry(i); ipcacheCallback(i); }