git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07fd3bd
)
r14425: fixed an hmac-md5 error for keys longer than 64 (using deallocated
author
Andrew Tridgell
<tridge@samba.org>
Wed, 15 Mar 2006 05:34:04 +0000
(
05:34
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:57:22 +0000
(13:57 -0500)
stack variable)
(This used to be commit
b10cb752c2558e98495625bbbb8704d19031a42b
)
source4/lib/crypto/hmacmd5.c
patch
|
blob
|
history
diff --git
a/source4/lib/crypto/hmacmd5.c
b/source4/lib/crypto/hmacmd5.c
index 7635bf6a829e97d84f03976d9340eea5bad59c74..149a4b861c194a3bc561b12b7aa5149b491ef769 100644
(file)
--- a/
source4/lib/crypto/hmacmd5.c
+++ b/
source4/lib/crypto/hmacmd5.c
@@
-32,11
+32,11
@@
_PUBLIC_ void hmac_md5_init_rfc2104(const uint8_t *key, int key_len, HMACMD5Context *ctx)
{
int i;
+ uint8_t tk[16];
/* if key is longer than 64 bytes reset it to key=MD5(key) */
if (key_len > 64)
{
- uint8_t tk[16];
struct MD5Context tctx;
MD5Init(&tctx);