From: R.E. Wolff Date: Mon, 28 Apr 2014 14:55:47 +0000 (+0200) Subject: fixed DNS confusion in select.c if dnsfd(6) == 0 X-Git-Tag: v0.86~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e14fed3ec124147f9e8567f317c7fbf8eda155e;p=thirdparty%2Fmtr.git fixed DNS confusion in select.c if dnsfd(6) == 0 --- diff --git a/select.c b/select.c index 7553675..62478f4 100644 --- a/select.c +++ b/select.c @@ -197,12 +197,12 @@ void select_loop(void) { /* Have we finished a nameservice lookup? */ #ifdef ENABLE_IPV6 - if(dns && FD_ISSET(dnsfd6, &readfd)) { + if(dns && dnsfd6 && FD_ISSET(dnsfd6, &readfd)) { dns_ack6(); anyset = 1; } #endif - if(dns && FD_ISSET(dnsfd, &readfd)) { + if(dns && dnsfd && FD_ISSET(dnsfd, &readfd)) { dns_ack(); anyset = 1; }