[Python-checkins] r51763 - in python/branches/release24-maint: Misc/NEWS Modules/posixmodule.c
georg.brandl
python-checkins at python.org
Wed Sep 6 08:04:05 CEST 2006
Author: georg.brandl
Date: Wed Sep 6 08:04:03 2006
New Revision: 51763
Modified:
python/branches/release24-maint/Misc/NEWS
python/branches/release24-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/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS (original)
+++ python/branches/release24-maint/Misc/NEWS Wed Sep 6 08:04:03 2006
@@ -43,6 +43,9 @@
Extension Modules
-----------------
+- Bug #1551427: fix a wrong NULL pointer check in the win32 version
+ of os.urandom().
+
- Patch #1535500: fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
Modified: python/branches/release24-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/posixmodule.c (original)
+++ python/branches/release24-maint/Modules/posixmodule.c Wed Sep 6 08:04:03 2006
@@ -7333,7 +7333,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