From: Charles-François Natali Date: Sun, 1 Dec 2013 13:30:47 +0000 (+0100) Subject: Issue #18994: Add a missing check for a return value in fcntmodule. Patch by X-Git-Tag: v3.4.0b2~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5abca14b00224c37ad4fc8d6373d2d240680cb69;p=thirdparty%2FPython%2Fcpython.git Issue #18994: Add a missing check for a return value in fcntmodule. Patch by Vajrasky Kok. --- diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index e54c8e042a51..79d292f1ae44 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -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; }