svn commit: samba r14453 - in trunk/source/lib: .
jra at samba.org
jra at samba.org
Wed Mar 15 16:36:58 GMT 2006
Author: jra
Date: 2006-03-15 16:36:58 +0000 (Wed, 15 Mar 2006)
New Revision: 14453
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14453
Log:
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)
Modified:
trunk/source/lib/hmacmd5.c
Changeset:
Modified: trunk/source/lib/hmacmd5.c
===================================================================
--- trunk/source/lib/hmacmd5.c 2006-03-15 16:09:24 UTC (rev 14452)
+++ trunk/source/lib/hmacmd5.c 2006-03-15 16:36:58 UTC (rev 14453)
@@ -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);
More information about the samba-cvs
mailing list