diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c index c88d558..d69ec98 100644 --- a/src/network/getaddrinfo.c +++ b/src/network/getaddrinfo.c @@ -20,6 +20,9 @@ int getaddrinfo(const char *restrict host, const char *restrict serv, const stru } sa; } *out; + if (host == NULL && serv == NULL) + return EAI_NONAME; + if (hint) { family = hint->ai_family; flags = hint->ai_flags;