diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-10-16 10:51:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:09 -0500 |
commit | 69e755892ab68c42cfc04f43c3b2ee0d0f29264d (patch) | |
tree | 2e3163ac5b7145b1d9788da2cd634d4271990e3b /source4/heimdal/lib/des/hmac.c | |
parent | 91c33d44b61ee775534ab723e20e6ea4070309b7 (diff) | |
download | samba-69e755892ab68c42cfc04f43c3b2ee0d0f29264d.tar.gz samba-69e755892ab68c42cfc04f43c3b2ee0d0f29264d.tar.bz2 samba-69e755892ab68c42cfc04f43c3b2ee0d0f29264d.zip |
r19325: leak fix from lha
(This used to be commit 248f3265e6339f279691be5d17ca4ce733c6590d)
Diffstat (limited to 'source4/heimdal/lib/des/hmac.c')
-rw-r--r-- | source4/heimdal/lib/des/hmac.c | 5 |
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 |