(HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be freed.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18470 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-15 10:39:05 +00:00
parent 5660b196d6
commit a0ae8a588e

View File

@@ -28,7 +28,10 @@ HMAC_CTX_cleanup(HMAC_CTX *ctx)
free(ctx->ipad);
ctx->ipad = NULL;
}
EVP_MD_CTX_cleanup(ctx->ctx);
if (ctx->ctx) {
EVP_MD_CTX_destroy(ctx->ctx);
ctx->ctx = NULL;
}
}
size_t