Skip to content
Commit d101d836 authored by Florian Weimer's avatar Florian Weimer
Browse files

nss_dns: Rewrite getanswer_r to match getanswer_ptr (bug 12154, bug 29305)



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: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent a7fc30b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment