[svn-commits] russell: trunk r359061 - in /trunk: ./ main/md5.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Mar 13 19:10:41 CDT 2012
Author: russell
Date: Tue Mar 13 19:10:37 2012
New Revision: 359061
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359061
Log:
Fix incorrect sizeof() on a pointer in MD5Final().
........
Merged revisions 359059 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 359060 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/main/md5.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/md5.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/md5.c?view=diff&rev=359061&r1=359060&r2=359061
==============================================================================
--- trunk/main/md5.c (original)
+++ trunk/main/md5.c Tue Mar 13 19:10:37 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 svn-commits
mailing list