summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-15 05:34:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:22 -0500
commit11e160c3d70dba17d73b51ee0f95520dd50b4a68 (patch)
tree6bb4cb57209d4d20e79045648eb5f3712dd23e44 /source4
parent07fd3bd5121aa9b81b6c7a14910f09f64ab4bad9 (diff)
downloadsamba-11e160c3d70dba17d73b51ee0f95520dd50b4a68.tar.gz
samba-11e160c3d70dba17d73b51ee0f95520dd50b4a68.tar.bz2
samba-11e160c3d70dba17d73b51ee0f95520dd50b4a68.zip
r14425: fixed an hmac-md5 error for keys longer than 64 (using deallocated
stack variable) (This used to be commit b10cb752c2558e98495625bbbb8704d19031a42b)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/crypto/hmacmd5.c2
1 files changed, 1 insertions, 1 deletions
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);