summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorJeeban Sethi <jeeban@Jeebans-MacBook-Air.local>2023-02-16 00:27:12 +0530
committerTodd Short <todd.short@me.com>2023-02-20 09:49:36 -0500
commitc4a44e7b84c5371e6f1ac1e0a80d5fc737b2dc1c (patch)
tree8f54cd0caed474fc7020c076ce34feec12d571a6 /ssl/ssl_lib.c
parentc10ded8c2c862992c98b83909a679aa0bb448a55 (diff)
openssl#20299: Fixed use after free bug
CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from https://github.com/openssl/openssl/pull/20300)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 44ba62ffde..a2e2666962 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -739,6 +739,7 @@ SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, const SSL_METHOD *method)
if (!ossl_ssl_init(ssl, ctx, method, SSL_TYPE_SSL_CONNECTION)) {
OPENSSL_free(s);
s = NULL;
+ ssl = NULL;
goto sslerr;
}