mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -486,6 +486,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
|
|||
self->ssl = NULL;
|
||||
self->Socket = NULL;
|
||||
self->ctx = sslctx;
|
||||
self->shutdown_seen_zero = 0;
|
||||
self->handshake_done = 0;
|
||||
Py_INCREF(sslctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue