ssl3_free(): Return if it wasn't created
authorPascal Cuoq <cuoq@trust-in-soft.com>
Sun, 22 Nov 2015 23:13:15 +0000 (00:13 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Tue, 24 Nov 2015 21:01:35 +0000 (22:01 +0100)
commita60c151a7d478b74ae88186aca251d17b84a1e2f
tree4408c4e3a155fd88a21e7b6573eccfd0cbefa146
parent00f5263b78910da233ed0258bf8ea8fd1758abbc
ssl3_free(): Return if it wasn't created

If somewhere in SSL_new() there is a memory allocation failure, ssl3_free() can
get called with s->s3 still being NULL.

Patch also provided by Willy Tarreau <wtarreau@haproxy.com>

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Viktor Dukhovni <openssl-users@dukhovni.org>
ssl/s3_lib.c