[asterisk-commits] russell: branch 10 r359060 - in /branches/10: ./ main/md5.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 13 19:09:48 CDT 2012


Author: russell
Date: Tue Mar 13 19:09:44 2012
New Revision: 359060

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359060
Log:
Fix incorrect sizeof() on a pointer in MD5Final().
........

Merged revisions 359059 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/main/md5.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/main/md5.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/md5.c?view=diff&rev=359060&r1=359059&r2=359060
==============================================================================
--- branches/10/main/md5.c (original)
+++ branches/10/main/md5.c Tue Mar 13 19:09:44 2012
@@ -157,7 +157,7 @@
 	MD5Transform(ctx->buf, (uint32_t *) ctx->in);
 	byteReverse((unsigned char *) ctx->buf, 4);
 	memcpy(digest, ctx->buf, 16);
-	memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
+	memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
 }
 
 #ifndef ASM_MD5




More information about the asterisk-commits mailing list