summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-06 06:04:03 +0000
committerGeorg Brandl <georg@python.org>2006-09-06 06:04:03 +0000
commit5e6d03114e7cb4a27c6216228796583d6f9a398b (patch)
tree51803d56376754515142defc98631ac528c6e319 /Modules
parente63dab55ec0ea8b99749565e61cdcee25579eb72 (diff)
downloadcpython-git-5e6d03114e7cb4a27c6216228796583d6f9a398b.tar.gz
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom(). (backport from rev. 51762)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8d0363e7dd..f9718f3856 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7333,7 +7333,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");