Skip to content

Commit

Permalink
(gaih_getanswer_slice): Don't abort for unknown request types for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Nov 12, 2008
1 parent 58a4b51 commit 9ba2747
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resolv/nss_dns/dns-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9ba2747

Please sign in to comment.