]> granicus.if.org Git - python/commit
bpo-30594: Fixed refcounting in newPySSLSocket (#1992)
authorNathaniel J. Smith <njs@pobox.com>
Thu, 8 Jun 2017 06:30:43 +0000 (23:30 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Jun 2017 06:30:43 +0000 (09:30 +0300)
commit65ece7ca2366308fa91a39a8dfa255e6bdce3cca
treeb3035bf1d4c922cc27d30340512b7b5942de768d
parent0ecdc525146ecec9d1549ebf59404c769637a512
bpo-30594: Fixed refcounting in newPySSLSocket (#1992)

If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.
Modules/_ssl.c