summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-09-29 06:53:05 +0000
committertb <>2023-09-29 06:53:05 +0000
commita13dfa624381df2e77f5ca31d1187e39a82f9196 (patch)
treeb0ba1c43af047e10a03a0916d2585f3cb5e2f8f9 /src
parentdb36328db591112db1d64f8b9d62bf0fac8df54c (diff)
downloadopenbsd-a13dfa624381df2e77f5ca31d1187e39a82f9196.tar.gz
openbsd-a13dfa624381df2e77f5ca31d1187e39a82f9196.tar.bz2
openbsd-a13dfa624381df2e77f5ca31d1187e39a82f9196.zip
Appease coverity
This is a static pointer, so it ain't ever NULL, but shrug
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/evp/evp_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/evp/evp_test.c b/src/regress/lib/libcrypto/evp/evp_test.c
index 0b1f54f6af..eff071fa51 100644
--- a/src/regress/lib/libcrypto/evp/evp_test.c
+++ b/src/regress/lib/libcrypto/evp/evp_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_test.c,v 1.6 2023/09/28 14:54:39 tb Exp $ */ 1/* $OpenBSD: evp_test.c,v 1.7 2023/09/29 06:53:05 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -345,11 +345,13 @@ static int
345evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test) 345evp_pkey_iv_len_testcase(const struct evp_iv_len_test *test)
346{ 346{
347 const EVP_CIPHER *cipher = test->cipher(); 347 const EVP_CIPHER *cipher = test->cipher();
348 const char *name = OBJ_nid2ln(EVP_CIPHER_nid(cipher)); 348 const char *name;
349 EVP_CIPHER_CTX *ctx; 349 EVP_CIPHER_CTX *ctx;
350 int ret; 350 int ret;
351 int failure = 1; 351 int failure = 1;
352 352
353 assert(cipher != NULL);
354 name = OBJ_nid2ln(EVP_CIPHER_nid(cipher));
353 assert(name != NULL); 355 assert(name != NULL);
354 356
355 if ((ctx = EVP_CIPHER_CTX_new()) == NULL) { 357 if ((ctx = EVP_CIPHER_CTX_new()) == NULL) {