svn commit: samba r14454 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Wed Mar 15 16:37:39 GMT 2006
Author: jra
Date: 2006-03-15 16:37:37 +0000 (Wed, 15 Mar 2006)
New Revision: 14454
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14454
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:
branches/SAMBA_3_0/source/lib/hmacmd5.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/hmacmd5.c
===================================================================
--- branches/SAMBA_3_0/source/lib/hmacmd5.c 2006-03-15 16:36:58 UTC (rev 14453)
+++ branches/SAMBA_3_0/source/lib/hmacmd5.c 2006-03-15 16:37:37 UTC (rev 14454)
@@ -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