diff options
author | Bodo Möller <bodo@openssl.org> | 2001-03-07 01:37:54 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-03-07 01:37:54 +0000 |
commit | f418f8c17c5649eb5551e151a5da4e3d1f787947 (patch) | |
tree | a9bfc3cb9c6c8ab784fdecd59fd4b92ce5b3b6bf /crypto/ec | |
parent | 5277d7cb7cdaa45d2fef1ada07af3c26716c7fbe (diff) | |
download | openssl-f418f8c17c5649eb5551e151a5da4e3d1f787947.tar.gz |
In clear_free, clear the complete structure just in case
the method misses something.
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 990eab51aa..7b02a36539 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -120,6 +120,7 @@ void EC_GROUP_clear_free(EC_GROUP *group) group->meth->group_clear_finish(group); else if (group->meth != NULL && group->meth->group_finish != 0) group->meth->group_finish(group); + memset(point, 0, sizeof *group); OPENSSL_free(group); } @@ -206,6 +207,7 @@ void EC_POINT_clear_free(EC_POINT *point) point->meth->point_clear_finish(point); else if (point->meth != NULL && point->meth->point_finish != 0) point->meth->point_finish(point); + memset(point, 0, sizeof *point); OPENSSL_free(point); } |