From 820a20ea2b5f97e4a8fb714fedf33edafd40740a Mon Sep 17 00:00:00 2001 From: beck <> Date: Fri, 7 Jun 2002 03:45:34 +0000 Subject: Merge OpenSSL 0.9.7-stable-20020605, correctly autogenerate obj_mac.h --- src/lib/libcrypto/ec/ec_lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/libcrypto/ec/ec_lib.c') diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index e0d78d67fb..0cf485de60 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c @@ -106,6 +106,8 @@ EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) void EC_GROUP_free(EC_GROUP *group) { + if (!group) return; + if (group->meth->group_finish != 0) group->meth->group_finish(group); @@ -117,6 +119,8 @@ void EC_GROUP_free(EC_GROUP *group) void EC_GROUP_clear_free(EC_GROUP *group) { + if (!group) return; + if (group->meth->group_clear_finish != 0) group->meth->group_clear_finish(group); else if (group->meth != NULL && group->meth->group_finish != 0) @@ -337,6 +341,8 @@ EC_POINT *EC_POINT_new(const EC_GROUP *group) void EC_POINT_free(EC_POINT *point) { + if (!point) return; + if (point->meth->point_finish != 0) point->meth->point_finish(point); OPENSSL_free(point); @@ -345,6 +351,8 @@ void EC_POINT_free(EC_POINT *point) void EC_POINT_clear_free(EC_POINT *point) { + if (!point) return; + if (point->meth->point_clear_finish != 0) point->meth->point_clear_finish(point); else if (point->meth != NULL && point->meth->point_finish != 0) -- cgit v1.2.3-55-g6feb