]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Revert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6... 57/head
authorHaw Loeung <h.loeung@unixque.com>
Sat, 16 Aug 2014 00:06:15 +0000 (10:06 +1000)
committerHaw Loeung <h.loeung@unixque.com>
Sat, 16 Aug 2014 00:06:15 +0000 (10:06 +1000)
This reverts commit f45352dcb7e92471edd0e69de950c30e78d00424.

dns.c

diff --git a/dns.c b/dns.c
index 21ab60a1c38b22a4162fc484c026a4b5dc8d11a2..32b83c2b3741874769bbf257604c1899f9e71693 100644 (file)
--- 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);
   }