[Python-checkins] r51764 - in python/branches/release25-maint: Misc/NEWS Modules/posixmodule.c
georg.brandl
python-checkins at python.org
Wed Sep 6 08:04:07 CEST 2006
Author: georg.brandl
Date: Wed Sep 6 08:04:06 2006
New Revision: 51764
Modified:
python/branches/release25-maint/Misc/NEWS
python/branches/release25-maint/Modules/posixmodule.c
Log:
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
(backport from rev. 51762)
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Wed Sep 6 08:04:06 2006
@@ -51,6 +51,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/branches/release25-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release25-maint/Modules/posixmodule.c (original)
+++ python/branches/release25-maint/Modules/posixmodule.c Wed Sep 6 08:04:06 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