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

gethosts: Return EAI_MEMORY on allocation failure



All other cases of failures due to lack of memory return EAI_MEMORY, so
it seems wrong to return EAI_SYSTEM here.  The only reason
convert_hostent_to_gaih_addrtuple could fail is on calloc failure.

Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarDJ Delorie <dj@redhat.com>
(cherry picked from commit b587456c)
parent f5f88f14
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