_ssl.c does not handle errors on module creation
#111230
Labels
extension-modules
C modules in the Modules dir
topic-SSL
type-bug
An unexpected behavior, bug, or error
Bug report
sslmodule_init_constantsdoes not return-1when any ofPyModule_Add*calls fail.For example,
PyModule_AddIntConstantreturns-1on error, but it is never checked:cpython/Modules/_ssl.c
Lines 5790 to 5831 in 96cbd1e
Other ``sslmodule_init_*` functions do check for errors correctly.
I have a PR ready.
Linked PRs
_ssl.cnot checking for errors when initializing a module #111232The text was updated successfully, but these errors were encountered: