--------------------- PatchSet 4997 Date: 2007/07/18 12:47:59 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Fix some typos in old external dnsserver code. Members: src/dnsserver.cc:1.7.4.9->1.7.4.10 Index: squid3/src/dnsserver.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/dnsserver.cc,v retrieving revision 1.7.4.9 retrieving revision 1.7.4.10 diff -u -r1.7.4.9 -r1.7.4.10 --- squid3/src/dnsserver.cc 13 Jun 2007 09:42:39 -0000 1.7.4.9 +++ squid3/src/dnsserver.cc 18 Jul 2007 12:47:59 -0000 1.7.4.10 @@ -1,6 +1,6 @@ /* - * $Id: dnsserver.cc,v 1.7.4.9 2007/06/13 09:42:39 amosjeffries Exp $ + * $Id: dnsserver.cc,v 1.7.4.10 2007/07/18 12:47:59 amosjeffries Exp $ * * DEBUG: section 0 DNS Resolver * AUTHOR: Harvest Derived @@ -172,16 +172,16 @@ /* setup 'hints' for the system lookup */ memset(&hints, '\0', sizeof(struct addrinfo)); - hints.ai_famiy = AF_UNSPEC; + hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_CANONNAME; /* check if it's already an IP address in text form. */ for (;;) { AI = NULL; - res = getaddrinfo(buf,NULL,&hints,AI); + res = getaddrinfo(buf,NULL,&hints,&AI); - if (NULL != AI->ai_cannonname) + if (NULL != AI->ai_canonname) break; if (res != EAI_AGAIN) @@ -239,7 +239,7 @@ printf(" %s", inet_ntop(aiptr->ai_family, aiptr->ai_addr, ntoabuf, MAX_IPSTRLEN)); i++; - aiptr = aiptr->next; + aiptr = aiptr->ai_next; } printf("\n");