[Asterisk-cvs] asterisk rtp.c,1.89,1.90

markster at lists.digium.com markster at lists.digium.com
Wed Sep 8 22:31:04 CDT 2004


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

Modified Files:
	rtp.c 
Log Message:
Make sure rtp->f.data is initialized properly for 3389 (asterisk dev mailing list)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- rtp.c	31 Aug 2004 21:55:19 -0000	1.89
+++ rtp.c	9 Sep 2004 02:33:14 -0000	1.90
@@ -293,9 +293,13 @@
 	if (!len)
 		return NULL;
 	if (len < 24) {
+		rtp->f.data = rtp->rawdata + AST_FRIENDLY_OFFSET;
 		rtp->f.datalen = len - 1;
+		rtp->f.offset = AST_FRIENDLY_OFFSET;
 		memcpy(rtp->f.data, data + 1, len - 1);
 	} else {
+		rtp->f.data = NULL;
+		rtp->f.offset = 0;
 		rtp->f.datalen = 0;
 	}
 	rtp->f.frametype = AST_FRAME_CNG;




More information about the svn-commits mailing list