LibC: Don't fail `getaddrinfo` if node is null

This commit is contained in:
Bananymous 2025-05-27 07:11:41 +03:00
parent e0d986dcd7
commit 4721344518
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ int getaddrinfo(const char* __restrict nodename, const char* __restrict servname
return EAI_SOCKTYPE;
}
if (!nodename)
if (!nodename && !servname)
return EAI_NONAME;
int port = 0;