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) {