projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8d740
)
Fix md5 structure clearing in previous commit
author
David Schleef
<ds@schleef.org>
Fri, 26 Aug 2011 01:40:29 +0000
(18:40 -0700)
committer
David Schleef
<ds@schleef.org>
Fri, 26 Aug 2011 06:28:11 +0000
(23:28 -0700)
src/libFLAC/md5.c
patch
|
blob
|
history
diff --git
a/src/libFLAC/md5.c
b/src/libFLAC/md5.c
index
feb816b
..
6de9b1c
100644
(file)
--- a/
src/libFLAC/md5.c
+++ b/
src/libFLAC/md5.c
@@
-259,12
+259,12
@@
void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *ctx)
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
if(0 != ctx->internal_buf) {
free(ctx->internal_buf);
ctx->internal_buf = 0;
ctx->capacity = 0;
}
+ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
}
/*