summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-16 10:51:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:09 -0500
commit69e755892ab68c42cfc04f43c3b2ee0d0f29264d (patch)
tree2e3163ac5b7145b1d9788da2cd634d4271990e3b /source4
parent91c33d44b61ee775534ab723e20e6ea4070309b7 (diff)
downloadsamba-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')
-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