commit | b20cb33f7ff837d6265ac33768b05ec212931a7e | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Sep 06 06:04:06 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Sep 06 06:04:06 2006 +0000 |
tree | f110ad45504c3c4a2d45faf483da40dd263dc6bd | |
parent | f3ce2ab2f1fc5234aad3e47c82a3e24301d8ef10 [diff] [blame] |
Bug #1551427: fix a wrong NULL pointer check in the win32 version of os.urandom(). (backport from rev. 51762)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 5c67be6..45ea988 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -7877,7 +7877,7 @@ pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress( hAdvAPI32, "CryptGenRandom"); - if (pCryptAcquireContext == NULL) + if (pCryptGenRandom == NULL) return PyErr_Format(PyExc_NotImplementedError, "CryptGenRandom not found");