This currently leaks, which will fixed in a follow-on commit.
-/* $OpenBSD: ecdsatest.c,v 1.15 2023/05/04 13:41:20 tb Exp $ */
+/* $OpenBSD: ecdsatest.c,v 1.16 2023/05/04 13:49:29 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
goto err;
}
- if ((wrong_eckey = EC_KEY_new()) == NULL)
+ /* Exercise ECParameters_dup() and let ASAN test for leaks. */
+ if ((wrong_eckey = ECParameters_dup(key)) == NULL)
goto err;
group = EC_GROUP_new_by_curve_name(nid);
if (group == NULL)