mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Free a variable on an error path
Issue 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
6712ba9323
commit
fbccfedf9b
@ -212,6 +212,7 @@ static int psk_find_session_cb(SSL *ssl, const unsigned char *identity,
|
||||
cipher = SSL_CIPHER_find(ssl, 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