Skip to content
Commit 30046046 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

getaddrinfo: Fix leak with AI_ALL [BZ #28852]



Use realloc in convert_hostent_to_gaih_addrtuple and fix up pointers in
the result list so that a single block is maintained for
hostbyname3_r/hostbyname2_r and freed in gaih_inet.  This result is
never merged with any other results, since the hosts database does not
permit merging.

Resolves BZ #28852.

Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
parent d01411f6
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