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:
parent
5176337bf5
commit
860aee75b8
2 changed files with 3 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Properly initialize all fields of a SSL object after allocation.
|
||||
|
||||
- Issue #4366: Fix building extensions on all platforms when --enable-shared
|
||||
is used.
|
||||
|
||||
|
|
|
|||
|
|
@ -455,6 +455,7 @@ newPySSLSocket(SSL_CTX *ctx, PySocketSockObject *sock,
|
|||
self->peer_cert = NULL;
|
||||
self->ssl = NULL;
|
||||
self->Socket = NULL;
|
||||
self->shutdown_seen_zero = 0;
|
||||
|
||||
/* Make sure the SSL error state is initialized */
|
||||
(void) ERR_get_state();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue