commit | 854f7ba1d5cbb6a42511beae66c8dbe34f2cbcd3 | [log] [tgz] |
---|---|---|
author | Nathaniel J. Smith <njs@pobox.com> | Thu Jun 08 04:14:40 2017 -0700 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Jun 08 14:14:40 2017 +0300 |
tree | dc426dfe23a50d700d6f5d403d64dd7c1ed547db | |
parent | 2c7f927369922562adecd5c25ad55b4bf733f716 [diff] |
[3.6] bpo-30594: Fixed refcounting in newPySSLSocket (GH-1992) (#1994) 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. (cherry picked from commit 65ece7ca2366308fa91a39a8dfa255e6bdce3cca)