cmp_vfy_test.c: Avoid NULL pointer dereference
Fixes Coverity 1619463
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25503)
(cherry picked from commit 5bc13d5d8c
)
This commit is contained in:
parent
3682f27430
commit
0f6ff92e67
1 changed files with 2 additions and 1 deletions
|
@ -336,8 +336,9 @@ static int test_validate_msg_signature_sender_cert_extracert(void)
|
|||
|| !add_trusted(fixture->cmp_ctx, instaca_cert)) {
|
||||
tear_down(fixture);
|
||||
fixture = NULL;
|
||||
} else {
|
||||
fixture->cert = sk_X509_value(fixture->msg->extraCerts, 1); /* Insta CA */
|
||||
}
|
||||
fixture->cert = sk_X509_value(fixture->msg->extraCerts, 1); /* Insta CA */
|
||||
EXECUTE_TEST(execute_validate_msg_test, tear_down);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue