* resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Jun 2008 22:36:45 +0000 (22:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Jun 2008 22:36:45 +0000 (22:36 +0000)
ignore T_DNAME messages.
* resolv/arpa/nameser_compat.h (T_DNAME): Define.

ChangeLog
resolv/nss_dns/dns-host.c

index ec8d346..98ed0b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-10  Ulrich Drepper  <drepper@redhat.com>
+
+       * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
+       ignore T_DNAME messages.
+       * resolv/arpa/nameser_compat.h (T_DNAME): Define.
+
 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
 
        * misc/regexp.h (compile): Use __REPB_PREFIX macro.
index d998ebf..f99db1c 100644 (file)
@@ -1072,12 +1072,13 @@ gaih_getanswer_slice (const querybuf *answer, int anslen, const char *qname,
       if (__builtin_expect (type == T_SIG, 0)
          || __builtin_expect (type == T_KEY, 0)
          || __builtin_expect (type == T_NXT, 0)
-         || __builtin_expect (type == T_PTR, 0))
+         || __builtin_expect (type == T_PTR, 0)
+         || __builtin_expect (type == T_DNAME, 0))
        {
          /* We don't support DNSSEC yet.  For now, ignore the record
             and send a low priority message to syslog.
 
-            We also don't expect T_PTR messages.  */
+            We also don't expect T_PTR or T_DNAME messages.  */
          syslog (LOG_DEBUG | LOG_AUTH,
                  "getaddrinfo*.gaih_getanswer: got type \"%s\"",
                  p_type (type));