From 1e6f88f721e0cd74af4970cfa5acd0b0e76dfe7e Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 12 Apr 2016 20:59:18 -0500 Subject: [PATCH] Fix hcrypto evp_md cleanup call protocol --- lib/hcrypto/evp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hcrypto/evp.c b/lib/hcrypto/evp.c index c1f930f5d..0070c8c24 100644 --- a/lib/hcrypto/evp.c +++ b/lib/hcrypto/evp.c @@ -180,7 +180,7 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) HC_DEPRECATED { if (ctx->md && ctx->md->cleanup) { - int ret = (ctx->md->cleanup)(ctx); + int ret = (ctx->md->cleanup)(ctx->ptr); if (!ret) return ret; } else if (ctx->md) {