[Python-checkins] r51762 - in python/trunk: Misc/NEWS Modules/posixmodule.c

georg.brandl python-checkins at python.org
Wed Sep 6 08:04:00 CEST 2006


Author: georg.brandl
Date: Wed Sep  6 08:03:59 2006
New Revision: 51762

Modified:
   python/trunk/Misc/NEWS
   python/trunk/Modules/posixmodule.c
Log:
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().


Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Wed Sep  6 08:03:59 2006
@@ -41,6 +41,9 @@
 Extension Modules
 -----------------
 
+- Bug #1551427: fix a wrong NULL pointer check in the win32 version
+  of os.urandom().
+
 - Bug #1548092: fix curses.tparm seg fault on invalid input.
 
 - Bug #1550714: fix SystemError from itertools.tee on negative value for n.

Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c	(original)
+++ python/trunk/Modules/posixmodule.c	Wed Sep  6 08:03:59 2006
@@ -7877,7 +7877,7 @@
 
 		pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress(
 						hAdvAPI32, "CryptGenRandom");
-		if (pCryptAcquireContext == NULL)
+		if (pCryptGenRandom == NULL)
 			return PyErr_Format(PyExc_NotImplementedError,
 					    "CryptGenRandom not found");
 


More information about the Python-checkins mailing list