]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140795: Keep 'err' in local variable in _ssl.c (gh-143275)
authorSam Gross <colesbury@gmail.com>
Wed, 31 Dec 2025 00:45:44 +0000 (19:45 -0500)
committerGitHub <noreply@github.com>
Wed, 31 Dec 2025 00:45:44 +0000 (19:45 -0500)
commit96ab379dcaa93630a230402b8183a26ac99097bd
tree3714ee6bc757b36a8ccca7ebfd8e4f6bc7270095
parent469fe33edd92b8586d6995d07384b52170067c76
gh-140795: Keep 'err' in local variable in _ssl.c (gh-143275)

The error return code doesn't need to be mutable state on the SSLSocket.
This simplifes thread-safety and avoids potential reentrancy issues.
Modules/_ssl.c