mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Fix a memory leak in an error path
Found by Coverity Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6373)
This commit is contained in:
parent
28c73b34df
commit
bdd5f12ea6
@ -201,6 +201,7 @@ static int psk_use_session_cb(SSL *s, const EVP_MD *md,
|
||||
cipher = SSL_CIPHER_find(s, tls13_aes128gcmsha256_id);
|
||||
if (cipher == NULL) {
|
||||
BIO_printf(bio_err, "Error finding suitable ciphersuite\n");
|
||||
OPENSSL_free(key);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user