Commit ec96f5f5 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by Oswald Buddenhagen

fix inappropriate use of FREE() in ssl init error path

OpenSSL structures need to be freed with dedicated functions.
parent d55950a8
Pipeline #22786550 passed with stage
in 17 minutes and 6 seconds
......@@ -277,9 +277,11 @@ int mutt_ssl_starttls (CONNECTION* conn)
return 0;
FREE (&ssldata->ssl);
SSL_free (ssldata->ssl);
ssldata->ssl = 0;
FREE (&ssldata->ctx);
SSL_CTX_free (ssldata->ctx);
ssldata->ctx = 0;
FREE (&ssldata);
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