]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128217: Validate the normalized_environment variable instead of the similarly...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Dec 2024 13:29:56 +0000 (14:29 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Dec 2024 13:29:56 +0000 (13:29 +0000)
(cherry picked from commit 3ddd70ceaaf67b111ee4251817e150396d6d10a9)

Co-authored-by: Sergey Muraviov <smurav@mail.ru>
Modules/_winapi.c

index bd80c5c94fe36d89897bf63aeaecd7c80e38f0aa..d51586e60257d26dfa5252d5131bb8ffedaf79dd 100644 (file)
@@ -1048,7 +1048,7 @@ getenvironment(PyObject* environment)
     }
 
     normalized_environment = normalize_environment(environment);
-    if (normalize_environment == NULL) {
+    if (normalized_environment == NULL) {
         return NULL;
     }