projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
free cleanup almost the finale
[openssl.git]
/
crypto
/
dh
/
dh_pmeth.c
diff --git
a/crypto/dh/dh_pmeth.c
b/crypto/dh/dh_pmeth.c
index 3fad0548a13e88488fc4973f6c037776689fb205..e3ebc0201d8670c7a1f904069dbed230d175e8c6 100644
(file)
--- a/
crypto/dh/dh_pmeth.c
+++ b/
crypto/dh/dh_pmeth.c
@@
-477,10
+477,7
@@
static int pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
*keylen = dctx->kdf_outlen;
ret = 1;
err:
- if (Z) {
- OPENSSL_cleanse(Z, Zlen);
- OPENSSL_free(Z);
- }
+ OPENSSL_clear_free(Z, Zlen);
return ret;
}
return 1;