BUG/MEDIUM: ssl: Don't forget to free ctx->ssl on failure.
authorOlivier Houchard <cognet@ci0.org>
Fri, 24 Jan 2020 14:17:38 +0000 (15:17 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 24 Jan 2020 14:17:38 +0000 (15:17 +0100)
commitefe5e8e99890b24dcfb8c925d98bf82e2fdf0b9f
treece4013fa01c04dec73c708d353c3846c4e2f1edc
parent6d53cd6978d80aea86a5ca05aa023a1c6640d606
BUG/MEDIUM: ssl: Don't forget to free ctx->ssl on failure.

In ssl_sock_init(), if we fail to allocate the BIO, don't forget to free
the SSL *, or we'd end up with a memory leak.

This should be backported to 2.1 and 2.0.
src/ssl_sock.c