[svn-commits] tilghman: trunk r228979 - /trunk/channels/iax2-parser.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 9 11:17:34 CST 2009


Author: tilghman
Date: Mon Nov  9 11:17:29 2009
New Revision: 228979

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=228979
Log:
Don't try to convert a 64-bit integer, where only a 32-bit integer is stored.
(closes issue #16194)
 Reported by: habile

Modified:
    trunk/channels/iax2-parser.c

Modified: trunk/channels/iax2-parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/iax2-parser.c?view=diff&rev=228979&r1=228978&r2=228979
==============================================================================
--- trunk/channels/iax2-parser.c (original)
+++ trunk/channels/iax2-parser.c Mon Nov  9 11:17:29 2009
@@ -797,7 +797,7 @@
 				snprintf(tmp, (int)sizeof(tmp), "Expecting capability to be %d bytes long but was %d\n", (int)sizeof(unsigned int), len);
 				errorf(tmp);
 			} else if (ies->capability == 0) { /* Don't overwrite capability2, if specified */
-				ies->capability = ntohll(get_unaligned_uint32(data + 2));
+				ies->capability = ntohl(get_unaligned_uint32(data + 2));
 			}
 			break;
 		case IAX_IE_CAPABILITY2:




More information about the svn-commits mailing list