util/domd: harmonize with compiler detection in Configure.
[oweals/openssl.git] / crypto / hmac / hmac.c
index 51a0a3efcd672dd85914624b38613ce4958d3bec..023ec456f94ca542c49c6d82656f71b87c4de29e 100644 (file)
@@ -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,