mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-114917: add support for AI_NUMERICSERV in getaddrinfo emulation (#114918)
This commit is contained in:
parent
b0a4f6599a
commit
3453b5c1d6
4 changed files with 12 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue