summaryrefslogtreecommitdiffstats
path: root/contrib/bind
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-05-22 14:27:35 +0000
committernectar <nectar@FreeBSD.org>2002-05-22 14:27:35 +0000
commit821e80e4ba499cef10c5bdb12693a55867093d9f (patch)
treef3903ec15fc4bd8b0ca163c8ac9dabf406a08f47 /contrib/bind
parentb8aa530e782d43d47e412a3fe14fc87574657604 (diff)
downloadFreeBSD-src-821e80e4ba499cef10c5bdb12693a55867093d9f.zip
FreeBSD-src-821e80e4ba499cef10c5bdb12693a55867093d9f.tar.gz
Repair a bug where type AAAA answer records were not displayed.
Reference ISC BIND issue: ``1279. [bug] nslookup: partial coversion to similar style outputs for both -type=aaaa and -type=a.'' Reported by: ume
Diffstat (limited to 'contrib/bind')
-rw-r--r--contrib/bind/bin/nslookup/getinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/bind/bin/nslookup/getinfo.c b/contrib/bind/bin/nslookup/getinfo.c
index 331d6d5..a1c593c 100644
--- a/contrib/bind/bin/nslookup/getinfo.c
+++ b/contrib/bind/bin/nslookup/getinfo.c
@@ -253,8 +253,7 @@ GetAnswer(nsAddrPtr, queryType, msg, msglen, iquery, hostPtr, isServer,
printf("Non-authoritative answer:\n");
}
- if (queryType != T_A && queryType != T_AAAA && /* A6? */
- !(iquery && queryType == T_PTR)) {
+ if (queryType != T_A && !(iquery && queryType == T_PTR)) {
while (--ancount >= 0 && cp < eom) {
if ((cp = Print_rr(cp, (u_char *)&answer,
eom, stdout)) == NULL) {
OpenPOWER on IntegriCloud