From: Haw Loeung Date: Sat, 16 Aug 2014 00:06:15 +0000 (+1000) Subject: Revert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6... X-Git-Tag: v0.86~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F57%2Fhead;p=thirdparty%2Fmtr.git Revert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified." This reverts commit f45352dcb7e92471edd0e69de950c30e78d00424. --- diff --git a/dns.c b/dns.c index 21ab60a..32b83c2 100644 --- a/dns.c +++ b/dns.c @@ -509,16 +509,11 @@ int dns_waitfd6(void) void dns_open(void) { - int option,i,nscount; + int option,i; if (!dns) return; MY_RES_INIT(); -#ifdef ENABLE_IPV6 - nscount = myres.nscount + myres._u._ext.nscount6; -#else - nscount = myres.nscount; -#endif - if (!nscount) { + if (!myres.nscount) { fprintf(stderr,"No nameservers defined.\n"); exit(-1); }