mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-29 11:14:36 +00: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();
|
SETUP_CIPHERLIST_TEST_FIXTURE();
|
||||||
if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT"))
|
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);
|
tear_down(fixture);
|
||||||
|
fixture = NULL;
|
||||||
|
}
|
||||||
EXECUTE_CIPHERLIST_TEST();
|
EXECUTE_CIPHERLIST_TEST();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user