Fix hcrypto evp_md cleanup call protocol

This commit is contained in:
Nicolas Williams
2016-04-12 20:59:18 -05:00
parent d3f9bea491
commit 1e6f88f721

View File

@@ -180,7 +180,7 @@ int
EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) HC_DEPRECATED EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) HC_DEPRECATED
{ {
if (ctx->md && ctx->md->cleanup) { if (ctx->md && ctx->md->cleanup) {
int ret = (ctx->md->cleanup)(ctx); int ret = (ctx->md->cleanup)(ctx->ptr);
if (!ret) if (!ret)
return ret; return ret;
} else if (ctx->md) { } else if (ctx->md) {