Skip to content

Commit

Permalink
Forward the case of NULL node to the original getaddrinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikushin committed Feb 2, 2020
1 parent eae85a7 commit 4108a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openbsd-compat/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ int getaddrinfo_android(
{
if (!node)
{
fprintf(stderr, "getaddrinfo_android: Invalid argument \"node\"\n");
return EAI_FAIL;
// Forward the case of NULL node to the original getaddrinfo.
return getaddrinfo(node, service, hints, res);
}

if (!service)
Expand Down

0 comments on commit 4108a46

Please sign in to comment.