test: fix Coverity use after free
@@ -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;
}
