X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fnetwork%2Fgethostbyname2_r.c;h=27eb080f8502128179fcaa92a9bf15c8b66ea4f9;hb=6739b13a172aad9c01572c04cadacc99c7041811;hp=49e4e53197d195d83a91ee4605c0cea7e5c8e9fa;hpb=70b584bc9467ce939c73898212c17be1ab7e39af;p=musl diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c index 49e4e531..27eb080f 100644 --- a/src/network/gethostbyname2_r.c +++ b/src/network/gethostbyname2_r.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include int gethostbyname2_r(const char *name, int af, struct hostent *h, char *buf, size_t buflen, @@ -30,7 +30,6 @@ int gethostbyname2_r(const char *name, int af, buflen -= sizeof(char *)-i; } - getaddrinfo(name, 0, &hint, &ai); switch (getaddrinfo(name, 0, &hint, &ai)) { case EAI_NONAME: *err = HOST_NOT_FOUND;