diff options
| author | Georg Brandl <georg@python.org> | 2006-09-06 06:03:59 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-09-06 06:03:59 +0000 |
| commit | 74bb783c2fd8084a835b6663abe5b70c55fa999d (patch) | |
| tree | 811a824f29814e73172fb16bc2401c4c01b62814 /Modules/posixmodule.c | |
| parent | 314bef9fffff461444e56ccc97655bdf11e94a74 (diff) | |
| download | cpython-git-74bb783c2fd8084a835b6663abe5b70c55fa999d.tar.gz | |
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
Diffstat (limited to 'Modules/posixmodule.c')
| -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 5c67be6dc0..45ea9886eb 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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"); |
