[Asterisk-cvs] asterisk rtp.c,1.87,1.88

markster at lists.digium.com markster at lists.digium.com
Tue Aug 31 09:59:53 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31715

Modified Files:
	rtp.c 
Log Message:
Be sure to do ntohl before considering extended field


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- rtp.c	31 Aug 2004 05:09:20 -0000	1.87
+++ rtp.c	31 Aug 2004 14:03:18 -0000	1.88
@@ -449,7 +449,7 @@
 	if (ext) {
 		/* RTP Extension present */
 		hdrlen += 4;
-		hdrlen += (rtpheader[3] & 0xffff) << 2;
+		hdrlen += (ntohl(rtpheader[3]) & 0xffff) << 2;
 	}
 
 	if (res < hdrlen) {




More information about the svn-commits mailing list