mirror of
https://github.com/openssl/openssl.git
synced 2024-12-13 12:03:48 +08:00
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)
This commit is contained in:
parent
7fe3010471
commit
a2b1ab6100
@ -3371,6 +3371,10 @@ void ssl3_free(SSL *s)
|
||||
OPENSSL_free(sc->s3.alpn_selected);
|
||||
OPENSSL_free(sc->s3.alpn_proposed);
|
||||
|
||||
#ifndef OPENSSL_NO_PSK
|
||||
OPENSSL_free(sc->s3.tmp.psk);
|
||||
#endif
|
||||
|
||||
#ifndef OPENSSL_NO_SRP
|
||||
ssl_srp_ctx_free_intern(sc);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user