diff options
author | Pauli <paul.dale@oracle.com> | 2019-11-20 13:20:01 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-11-21 14:28:37 +1000 |
commit | cff7d199e0dc51ae939de5fb7702aab2a9ef30fc (patch) | |
tree | d72ae101ccc221433f1880943a45a53f5defe865 /crypto/ec | |
parent | 6a835fcfb10ba004498f9e39873db3d2b9011609 (diff) |
ECDSA: don't clear free memory after verify.
Verifications are public, there is no need to clear the used storage before
freeing it.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10475)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ecdsa_ossl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecdsa_ossl.c b/crypto/ec/ecdsa_ossl.c index 5593d5d68c..8de22ba910 100644 --- a/crypto/ec/ecdsa_ossl.c +++ b/crypto/ec/ecdsa_ossl.c @@ -344,7 +344,7 @@ int ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, goto err; ret = ECDSA_do_verify(dgst, dgst_len, s, eckey); err: - OPENSSL_clear_free(der, derlen); + OPENSSL_free(der); ECDSA_SIG_free(s); return ret; } |