(getanswer): Fix the PTR/CNAME bug.
authordrepper <drepper>
Tue, 10 Feb 1998 19:57:38 +0000 (19:57 +0000)
committerdrepper <drepper>
Tue, 10 Feb 1998 19:57:38 +0000 (19:57 +0000)
resolv/gethnamaddr.c

index 5b9950a..7352ed8 100644 (file)
@@ -286,7 +286,7 @@ getanswer(answer, anslen, qname, qtype)
                }
                if (qtype == T_PTR && type == T_CNAME) {
                        n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
-                       if (n < 0 || !res_hnok(tbuf)) {
+                       if (n < 0 || !res_dnok(tbuf)) {
                                had_error++;
                                continue;
                        }