projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5277d7c
)
In clear_free, clear the complete structure just in case
author
Bodo Möller
<bodo@openssl.org>
Wed, 7 Mar 2001 01:37:54 +0000
(
01:37
+0000)
committer
Bodo Möller
<bodo@openssl.org>
Wed, 7 Mar 2001 01:37:54 +0000
(
01:37
+0000)
the method misses something.
crypto/ec/ec_lib.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_lib.c
b/crypto/ec/ec_lib.c
index 990eab51aa1dccd5eb75046baa251249833ab4b2..7b02a365396eb1b7a62a16e675b8ddde70e6af66 100644
(file)
--- 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);
}