From e1b483878d9824c63d376895da633b0b96fbbaed Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 22 Sep 2016 13:04:03 +0000 Subject: Import OpenSSL 1.0.2i. --- crypto/hmac/hmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/hmac') diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index 51a0a3efcd67..213504e85fee 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -234,7 +234,7 @@ void HMAC_CTX_cleanup(HMAC_CTX *ctx) EVP_MD_CTX_cleanup(&ctx->i_ctx); EVP_MD_CTX_cleanup(&ctx->o_ctx); EVP_MD_CTX_cleanup(&ctx->md_ctx); - memset(ctx, 0, sizeof *ctx); + OPENSSL_cleanse(ctx, sizeof *ctx); } unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, -- cgit v1.2.3