]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114917: Fix typo in getaddrinfo emulation (#131413)
authorMax Bachmann <kontakt@maxbachmann.de>
Tue, 18 Mar 2025 13:31:13 +0000 (14:31 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Mar 2025 13:31:13 +0000 (14:31 +0100)
Modules/getaddrinfo.c

index 5219330d0f61e865f9b5c0518973f3ff9a7c4267..de6f0bf57b5c314cf53d5c1057b6cb487d49a977 100644 (file)
@@ -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);
             }