Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom(). (backport from rev. 51762)
This commit is contained in:
parent
f3ce2ab2f1
commit
b20cb33f7f
|
@ -51,6 +51,9 @@ Library
|
|||
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.
|
||||
|
|
|
@ -7877,7 +7877,7 @@ win32_urandom(PyObject *self, PyObject *args)
|
|||
|
||||
pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress(
|
||||
hAdvAPI32, "CryptGenRandom");
|
||||
if (pCryptAcquireContext == NULL)
|
||||
if (pCryptGenRandom == NULL)
|
||||
return PyErr_Format(PyExc_NotImplementedError,
|
||||
"CryptGenRandom not found");
|
||||
|
||||
|
|
Loading…
Reference in New Issue