summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-15 16:37:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:31 -0500
commitc17e40be33322049c3a12915790b8a149eb8c10e (patch)
tree33bd04b40c71e0f3ef9bb1981177f8f82353b4a7
parent14b07dccc026dc68f0a559cbc0ed070844a150c0 (diff)
downloadsamba-c17e40be33322049c3a12915790b8a149eb8c10e.tar.gz
samba-c17e40be33322049c3a12915790b8a149eb8c10e.tar.bz2
samba-c17e40be33322049c3a12915790b8a149eb8c10e.zip
r14454: Janitor for tridge - same code exists in Samba3 and 4.
Jeremy. ----------------------------- fixed an hmac-md5 error for keys longer than 64 (using deallocated stack variable) (This used to be commit f3879dd6bbbb20524e138b9ba8a54f6464fee5eb)
-rw-r--r--source3/lib/hmacmd5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/hmacmd5.c b/source3/lib/hmacmd5.c
index c94702bb08..a9b7d4d57f 100644
--- a/source3/lib/hmacmd5.c
+++ b/source3/lib/hmacmd5.c
@@ -32,10 +32,10 @@
void hmac_md5_init_rfc2104(const unsigned char *key, int key_len, HMACMD5Context *ctx)
{
int i;
+ unsigned char tk[16];
/* if key is longer than 64 bytes reset it to key=MD5(key) */
if (key_len > 64) {
- unsigned char tk[16];
struct MD5Context tctx;
MD5Init(&tctx);