[asterisk-commits] russell: branch 1.8 r359059 - /branches/1.8/main/md5.c

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


Author: russell
Date: Tue Mar 13 19:08:54 2012
New Revision: 359059

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

Modified:
    branches/1.8/main/md5.c

Modified: branches/1.8/main/md5.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/md5.c?view=diff&rev=359059&r1=359058&r2=359059
==============================================================================
--- branches/1.8/main/md5.c (original)
+++ branches/1.8/main/md5.c Tue Mar 13 19:08:54 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