diff options
| author | Georg Brandl <georg@python.org> | 2006-09-06 06:04:03 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-09-06 06:04:03 +0000 |
| commit | 5e6d03114e7cb4a27c6216228796583d6f9a398b (patch) | |
| tree | 51803d56376754515142defc98631ac528c6e319 /Modules | |
| parent | e63dab55ec0ea8b99749565e61cdcee25579eb72 (diff) | |
| download | cpython-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.c | 2 |
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"); |
