summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-09-29 06:53:06 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-09-29 06:53:06 +0000
commit7a750c33efa29d0e521afdc24c53d7a5118fd827 (patch)
treed5efad2f4496ee3e72f3917c1b429149fd203c5a
parent08941b5a43c0f9bef792a860b0566c798b2053f0 (diff)
Appease coverity
This is a static pointer, so it ain't ever NULL, but shrug
-rw-r--r--regress/lib/libcrypto/evp/evp_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/evp/evp_test.c b/regress/lib/libcrypto/evp/evp_test.c
index 0b1f54f6af0..eff071fa516 100644
--- a/regress/lib/libcrypto/evp/evp_test.c
+++ b/regress/lib/libcrypto/evp/evp_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_test.c,v 1.6 2023/09/28 14:54:39 tb Exp $ */
+/* $OpenBSD: evp_test.c,v 1.7 2023/09/29 06:53:05 tb Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
*
@@ -345,11 +345,13 @@ static int
evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test)
{
const EVP_CIPHER *cipher = test->cipher();
- const char *name = OBJ_nid2ln(EVP_CIPHER_nid(cipher));
+ const char *name;
EVP_CIPHER_CTX *ctx;
int ret;
int failure = 1;
+ assert(cipher != NULL);
+ name = OBJ_nid2ln(EVP_CIPHER_nid(cipher));
assert(name != NULL);
if ((ctx = EVP_CIPHER_CTX_new()) == NULL) {