-/* $OpenBSD: ec_lib.c,v 1.50 2023/03/08 05:45:31 jsing Exp $ */
+/* $OpenBSD: ec_lib.c,v 1.51 2023/03/08 06:47:30 jsing Exp $ */
/*
* Originally written by Bodo Moeller for the OpenSSL project.
*/
void
EC_GROUP_free(EC_GROUP *group)
{
- if (group != NULL)
+ if (group == NULL)
return;
if (group->meth->group_finish != NULL)
void
EC_GROUP_clear_free(EC_GROUP *group)
{
- return EC_GROUP_free(group);
+ EC_GROUP_free(group);
}
int
void
EC_POINT_free(EC_POINT *point)
{
- if (point != NULL)
+ if (point == NULL)
return;
if (point->meth->point_finish != NULL)
void
EC_POINT_clear_free(EC_POINT *point)
{
- return EC_POINT_free(point);
+ EC_POINT_free(point);
}
int