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
This commit is contained in:
Jacques Vidrine 2002-05-22 14:27:35 +00:00
parent 9aee5e4673
commit 170a094006

View File

@ -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) {