[asterisk-commits] kmoore: branch 10 r368721 - in /branches/10: ./ main/md5.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 11 09:11:17 CDT 2012
Author: kmoore
Date: Mon Jun 11 09:11:14 2012
New Revision: 368721
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368721
Log:
Fix compilation in dev-mode
Backport a compilation fix in md5.c from trunk that only showed up in
dev-mode under certain compiler versions.
........
Merged revisions 368719 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=368721&r1=368720&r2=368721
==============================================================================
--- branches/10/main/md5.c (original)
+++ branches/10/main/md5.c Mon Jun 11 09:11:14 2012
@@ -123,6 +123,7 @@
{
unsigned count;
unsigned char *p;
+ uint32_t *in_buf;
/* Compute number of bytes mod 64 */
count = (ctx->bits[0] >> 3) & 0x3F;
@@ -151,8 +152,9 @@
byteReverse(ctx->in, 14);
/* Append length in bits and transform */
- ((uint32_t *) ctx->in)[14] = ctx->bits[0];
- ((uint32_t *) ctx->in)[15] = ctx->bits[1];
+ in_buf = (uint32_t *) ctx->in;
+ in_buf[14] = ctx->bits[0];
+ in_buf[15] = ctx->bits[1];
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
byteReverse((unsigned char *) ctx->buf, 4);
More information about the asterisk-commits
mailing list