From b1fe5617fffbecf9cdee2b735a68f6ef9598048b Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 8 Mar 2023 06:47:30 +0000 Subject: Fix previous. --- src/lib/libcrypto/ec/ec_lib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 8eb0253a1f..2d14f9c9c5 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c @@ -1,4 +1,4 @@ -/* $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. */ @@ -117,7 +117,7 @@ EC_GROUP_new(const EC_METHOD *meth) void EC_GROUP_free(EC_GROUP *group) { - if (group != NULL) + if (group == NULL) return; if (group->meth->group_finish != NULL) @@ -136,7 +136,7 @@ EC_GROUP_free(EC_GROUP *group) void EC_GROUP_clear_free(EC_GROUP *group) { - return EC_GROUP_free(group); + EC_GROUP_free(group); } int @@ -836,7 +836,7 @@ EC_POINT_new(const EC_GROUP *group) void EC_POINT_free(EC_POINT *point) { - if (point != NULL) + if (point == NULL) return; if (point->meth->point_finish != NULL) @@ -848,7 +848,7 @@ EC_POINT_free(EC_POINT *point) void EC_POINT_clear_free(EC_POINT *point) { - return EC_POINT_free(point); + EC_POINT_free(point); } int -- cgit v1.2.3-55-g6feb