projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanse memory using the new OPENSSL_cleanse() function.
[openssl.git]
/
crypto
/
ec
/
ec_key.c
diff --git
a/crypto/ec/ec_key.c
b/crypto/ec/ec_key.c
index d537fe7de6b975bac1e076315e6b733d5cc80002..d7758c91d388c5667180782bf1c5c8055d29a0a3 100644
(file)
--- a/
crypto/ec/ec_key.c
+++ b/
crypto/ec/ec_key.c
@@
-118,7
+118,7
@@
void EC_KEY_free(EC_KEY *r)
if (r->meth_data && r->meth_data->finish)
r->meth_data->finish(r);
-
memset((void *)r, 0x0
, sizeof(EC_KEY));
+
OPENSSL_cleanse((void *)r
, sizeof(EC_KEY));
OPENSSL_free(r);
}