From c17e40be33322049c3a12915790b8a149eb8c10e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Mar 2006 16:37:37 +0000 Subject: 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) --- source3/lib/hmacmd5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit