[Asterisk-cvs] asterisk rtp.c,1.134,1.135

markster at lists.digium.com markster at lists.digium.com
Sat Jun 18 12:45:37 CDT 2005


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

Modified Files:
	rtp.c 
Log Message:
Don't try to read from an rtcp if there isn't one


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- rtp.c	6 Jun 2005 22:12:18 -0000	1.134
+++ rtp.c	18 Jun 2005 16:46:44 -0000	1.135
@@ -325,7 +325,7 @@
 	unsigned int rtcpdata[1024];
 	char iabuf[INET_ADDRSTRLEN];
 	
-	if (!rtp)
+	if (!rtp || !rtp->rtcp)
 		return &null_frame;
 
 	len = sizeof(sin);




More information about the svn-commits mailing list