git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0824b3b
)
r19325: leak fix from lha
author
Andrew Tridgell
<tridge@samba.org>
Mon, 16 Oct 2006 10:51:23 +0000
(10:51 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:21:09 +0000
(14:21 -0500)
source/heimdal/lib/des/hmac.c
patch
|
blob
|
history
diff --git
a/source/heimdal/lib/des/hmac.c
b/source/heimdal/lib/des/hmac.c
index 1d323b37254f139b7737353536a93b2c6bda1c06..4bcb0defa582dc7db97f5c7c637ba3aa3d0ca428 100644
(file)
--- a/
source/heimdal/lib/des/hmac.c
+++ b/
source/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