-/* $OpenBSD: ec_lib.c,v 1.68 2024/10/15 06:27:43 tb Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.69 2024/10/15 17:44:43 tb Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
return 0;
}
- if (group->generator == NULL) {
+ if (group->generator == NULL)
group->generator = EC_POINT_new(group);
- if (group->generator == NULL)
- return 0;
- }
+ if (group->generator == NULL)
+ return 0;
+
if (!EC_POINT_copy(group->generator, generator))
return 0;