diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index 5219330d0f6..de6f0bf57b5 100644 --- a/Modules/getaddrinfo.c +++ b/Modules/getaddrinfo.c @@ -351,7 +351,7 @@ getaddrinfo(const char*hostname, const char*servname, struct servent *sp; const char *proto; - if (ai->ai_flags & AI_NUMERICSERV) { + if (pai->ai_flags & AI_NUMERICSERV) { ERR(EAI_NONAME); }