mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
test: fix Coverity 1454818: use after free
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14597)
This commit is contained in:
parent
ebdb5cccde
commit
39f6bf33e5
@ -205,8 +205,10 @@ static int test_default_cipherlist_explicit(void)
|
||||
{
|
||||
SETUP_CIPHERLIST_TEST_FIXTURE();
|
||||
if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT"))
|
||||
|| !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT")))
|
||||
|| !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT"))) {
|
||||
tear_down(fixture);
|
||||
fixture = NULL;
|
||||
}
|
||||
EXECUTE_CIPHERLIST_TEST();
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user