summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-21 15:39:15 (GMT)
committerGitHub <noreply@github.com>2021-03-21 15:39:15 (GMT)
commitc145c03281af850130dd7f75abc19c6ea49626e6 (patch)
tree16007425478cd67cbe9534bb5c7ad7625961ae1e /Python/pythonrun.c
parent107cf078910db7c1cafdd486270ba8083d72aed7 (diff)
downloadcpython-c145c03281af850130dd7f75abc19c6ea49626e6.zip
cpython-c145c03281af850130dd7f75abc19c6ea49626e6.tar.gz
cpython-c145c03281af850130dd7f75abc19c6ea49626e6.tar.bz2
bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)
OpenSSL copies the internal message callback from SSL_CTX->msg_callback to SSL->msg_callback. SSL_set_SSL_CTX() does not update SSL->msg_callback to use the callback value of the new context. PySSL_set_context() now resets the callback and _PySSL_msg_callback() resets thread state in error path. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 77cde5042a2f1eae489c11a67540afaf43cd5cdf) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions