mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-03 13:09:38 +00: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);
|
cipher = SSL_CIPHER_find(s, tls13_aes128gcmsha256_id);
|
||||||
if (cipher == NULL) {
|
if (cipher == NULL) {
|
||||||
BIO_printf(bio_err, "Error finding suitable ciphersuite\n");
|
BIO_printf(bio_err, "Error finding suitable ciphersuite\n");
|
||||||
|
OPENSSL_free(key);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user