]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(getanswer_r): Fix the PTR/CNAME bug. From bind 4.9.6.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:38:32 +0000 (13:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:38:32 +0000 (13:38 +0000)
resolv/nss_dns/dns-host.c

index ee3f7e8d79689c81ea84dbf46c8f70eae4d7f521..74c0b254b9b4d0158fc1ea605273492c4925f62e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Extended from original form by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -439,7 +439,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
       if (qtype == T_PTR && type == T_CNAME)
        {
          n = dn_expand (answer->buf, end_of_message, cp, tbuf, sizeof tbuf);
-         if (n < 0 || res_hnok (tbuf) == 0)
+         if (n < 0 || res_dnok (tbuf) == 0)
            {
              ++had_error;
              continue;