From 11e160c3d70dba17d73b51ee0f95520dd50b4a68 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Mar 2006 05:34:04 +0000 Subject: r14425: fixed an hmac-md5 error for keys longer than 64 (using deallocated stack variable) (This used to be commit b10cb752c2558e98495625bbbb8704d19031a42b) --- source4/lib/crypto/hmacmd5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/crypto') diff --git a/source4/lib/crypto/hmacmd5.c b/source4/lib/crypto/hmacmd5.c index 7635bf6a82..149a4b861c 100644 --- 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); -- cgit