Skip to content

Commit

Permalink
nss_dns: Rewrite getanswer_r to match getanswer_ptr (bug 12154, bug 2…
Browse files Browse the repository at this point in the history
…9305)

Allocate the pointer arrays only at the end, when their sizes
are known.  This addresses bug 29305.

Skip over invalid names instead of failing lookups.  This partially
fixes bug 12154 (for gethostbyname, fixing getaddrinfo requires
different changes).

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
  • Loading branch information
fweimer-rh committed Aug 30, 2022
1 parent a7fc30b commit d101d83
Showing 1 changed file with 180 additions and 298 deletions.
Loading

0 comments on commit d101d83

Please sign in to comment.