diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2023-11-06 10:44:27 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2023-11-09 17:36:13 +0100 |
commit | 115fc7d3e7e115a5fb4a38ecb0b886ae88627c89 (patch) | |
tree | 23bc39ac69259e6c4363a6d7bbbcc8051fbaa7b9 | |
parent | 04d4f30a32336a0f5e3b096763c064b347dfc1aa (diff) |
Fix a possible memory leak of ssl->s3.tmp.psk
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22637)
(cherry picked from commit a2b1ab6100d5f0fb50b61d241471eea087415632)
-rw-r--r-- | ssl/s3_lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 78d4f04056..460b84325d 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3365,6 +3365,10 @@ void ssl3_free(SSL *s) OPENSSL_free(s->s3.alpn_selected); OPENSSL_free(s->s3.alpn_proposed); +#ifndef OPENSSL_NO_PSK + OPENSSL_free(sc->s3.tmp.psk); +#endif + #ifndef OPENSSL_NO_SRP ssl_srp_ctx_free_intern(s); #endif |