changeset 87679:84148898a606

Issue #18994: Add a missing check for a return value in fcntmodule. Patch by Vajrasky Kok.
author Charles-François Natali <cf.natali@gmail.com>
date Sun, 01 Dec 2013 14:30:47 +0100
parents b0c4c7f04f05
children c4715c9f442f
files Modules/fcntlmodule.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/fcntlmodule.c	Sun Dec 01 13:23:48 2013 +0100
+++ b/Modules/fcntlmodule.c	Sun Dec 01 14:30:47 2013 +0100
@@ -628,6 +628,8 @@
         return NULL;
 
     /* Add some symbolic constants to the module */
-    all_ins(m);
+    if (all_ins(m) < 0)
+        return NULL;
+
     return m;
 }