summaryrefslogtreecommitdiff
path: root/regress/lib/libcrypto/evp/evp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/lib/libcrypto/evp/evp_test.c')
-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) {