Thanks to Yuan Kang and the security researchers at Columbia
University and the University of Virginia for reporting the bug.
data = (sslsockdata *) safe_calloc (1, sizeof (sslsockdata));
conn->sockdata = data;
- data->ctx = SSL_CTX_new (SSLv23_client_method ());
+ if (! (data->ctx = SSL_CTX_new (SSLv23_client_method ())))
+ {
+ mutt_socket_close (conn);
+ return -1;
+ }
/* disable SSL protocols as needed */
if (!option(OPTTLSV1))