Commit bddb0730 authored by Antoine Pitrou's avatar Antoine Pitrou

Properly initialize all fields of a SSL object after allocation.

parent b118ae35
......@@ -32,6 +32,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.
......
......@@ -286,6 +286,7 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file,
self->ssl = NULL;
self->ctx = NULL;
self->Socket = NULL;
self->shutdown_seen_zero = 0;
/* Make sure the SSL error state is initialized */
(void) ERR_get_state();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment