summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-11-12 20:29:35 +0000
committerJakub Jelinek <jakub@redhat.com>2008-11-12 20:29:35 +0000
commit03c8e287448a12c8c4c6db3570f5b7e3930d488d (patch)
tree6227d4a8b3362cade23f1a5bdf6065c4e4a415ec /resolv
parentc02fa54041a68c12107ec577770ff81329af3bef (diff)
downloadglibc-cvs/fedora-glibc-2_8_90-17.tar.gz
Updated to fedora-glibc-20081112T2008cvs/fedora-glibc-2_8_90-17
Diffstat (limited to 'resolv')
-rw-r--r--resolv/nss_dns/dns-host.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
index 4d43dec946..6cbfcb63ce 100644
--- a/resolv/nss_dns/dns-host.c
+++ b/resolv/nss_dns/dns-host.c
@@ -1083,11 +1083,18 @@ gaih_getanswer_slice (const querybuf *answer, int anslen, const char *qname,
}
continue;
}
+#if 1
+ // We should not see any types other than those explicitly listed
+ // below. Some types sent by server seem missing, though. Just
+ // collect the data for now.
+ if (__builtin_expect (type != T_A && type != T_AAAA, 0))
+#else
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_DNAME, 0))
+#endif
{
/* We don't support DNSSEC yet. For now, ignore the record
and send a low priority message to syslog.