mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Properly initialize all fields of a SSL object after allocation.
This commit is contained in:
commit
b2201e1aa6
2 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Properly initialize all fields of a SSL object after allocation.
|
||||||
|
|
||||||
- Issue #19095: SSLSocket.getpeercert() now raises ValueError when the
|
- Issue #19095: SSLSocket.getpeercert() now raises ValueError when the
|
||||||
SSL handshake hasn't been done.
|
SSL handshake hasn't been done.
|
||||||
|
|
||||||
|
|
|
@ -486,6 +486,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
|
||||||
self->ssl = NULL;
|
self->ssl = NULL;
|
||||||
self->Socket = NULL;
|
self->Socket = NULL;
|
||||||
self->ctx = sslctx;
|
self->ctx = sslctx;
|
||||||
|
self->shutdown_seen_zero = 0;
|
||||||
self->handshake_done = 0;
|
self->handshake_done = 0;
|
||||||
Py_INCREF(sslctx);
|
Py_INCREF(sslctx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue