gh-114917: add support for AI_NUMERICSERV in getaddrinfo emulation (#114918)

This commit is contained in:
Max Bachmann 2025-03-18 11:26:51 +01:00 committed by GitHub
parent b0a4f6599a
commit 3453b5c1d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 2 deletions

View file

@ -351,6 +351,10 @@ getaddrinfo(const char*hostname, const char*servname,
struct servent *sp;
const char *proto;
if (ai->ai_flags & AI_NUMERICSERV) {
ERR(EAI_NONAME);
}
proto = NULL;
switch (pai->ai_socktype) {
case GAI_ANY: