summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/ecdsa/ecdsatest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
index 5f3edc5b2b..bc908ce1f5 100644
--- a/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
+++ b/src/regress/lib/libcrypto/ecdsa/ecdsatest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdsatest.c,v 1.15 2023/05/04 13:41:20 tb Exp $ */ 1/* $OpenBSD: ecdsatest.c,v 1.16 2023/05/04 13:49:29 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -154,7 +154,8 @@ test_builtin(void)
154 goto err; 154 goto err;
155 } 155 }
156 156
157 if ((wrong_eckey = EC_KEY_new()) == NULL) 157 /* Exercise ECParameters_dup() and let ASAN test for leaks. */
158 if ((wrong_eckey = ECParameters_dup(key)) == NULL)
158 goto err; 159 goto err;
159 group = EC_GROUP_new_by_curve_name(nid); 160 group = EC_GROUP_new_by_curve_name(nid);
160 if (group == NULL) 161 if (group == NULL)