Bugs item #1551427, was opened at 2006-09-03 14:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1551427&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Rocco Matano (rocco_m) Assigned to: Nobody/Anonymous (nobody) Summary: tiny bug in win32_urandom Initial Comment: In the file ...\Python-2.4.3\Modules\posixmodule.c the function win32_urandom tries to get the addresses of the functions 'CryptAcquireContextA' and 'CryptGenRandom' like this: pCryptAcquireContext=(CRYPTACQUIRECONTEXTA)GetProcAddress( hAdvAPI32, "CryptAcquireContextA"); if (pCryptAcquireContext == NULL) return PyErr_Format(PyExc_NotImplementedError, "CryptAcquireContextA not found"); pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress( hAdvAPI32, "CryptGenRandom"); if (pCryptAcquireContext == NULL) /* <- test pCryptGenRandom instead */ return PyErr_Format(PyExc_NotImplementedError, "CryptGenRandom not found"); After the second call to GetProcAddress() pCryptGenRandom should be tested against NULL. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1551427&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com