(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:
@@ -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
|
||||
|
Reference in New Issue
Block a user