]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18994: Add a missing check for a return value in fcntmodule. Patch by
authorCharles-François Natali <cf.natali@gmail.com>
Sun, 1 Dec 2013 13:30:47 +0000 (14:30 +0100)
committerCharles-François Natali <cf.natali@gmail.com>
Sun, 1 Dec 2013 13:30:47 +0000 (14:30 +0100)
Vajrasky Kok.

Modules/fcntlmodule.c

index e54c8e042a51a3e2735c1ec613449a2f735c9d32..79d292f1ae44f432ce98dc413a55819512d3be9e 100644 (file)
@@ -628,6 +628,8 @@ PyInit_fcntl(void)
         return NULL;
 
     /* Add some symbolic constants to the module */
-    all_ins(m);
+    if (all_ins(m) < 0)
+        return NULL;
+
     return m;
 }