summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/heimdal/lib/des/hmac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/heimdal/lib/des/hmac.c b/source4/heimdal/lib/des/hmac.c
index 1d323b3725..4bcb0defa5 100644
--- a/source4/heimdal/lib/des/hmac.c
+++ b/source4/heimdal/lib/des/hmac.c
@@ -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