projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add sanity check to print_bin function
[oweals/openssl.git]
/
crypto
/
ec
/
ec_pmeth.c
diff --git
a/crypto/ec/ec_pmeth.c
b/crypto/ec/ec_pmeth.c
index 37f8fa13168f4a1542c075d5927a6ad35e45168a..5b3d197b69c0f79ee8541e681dccbefd55beb81e 100644
(file)
--- a/
crypto/ec/ec_pmeth.c
+++ b/
crypto/ec/ec_pmeth.c
@@
-268,10
+268,7
@@
static int pkey_ec_kdf_derive(EVP_PKEY_CTX *ctx,
rv = 1;
err:
- if (ktmp) {
- OPENSSL_cleanse(ktmp, ktmplen);
- OPENSSL_free(ktmp);
- }
+ OPENSSL_clear_free(ktmp, ktmplen);
return rv;
}
#endif