[Asterisk-cvs] asterisk rtp.c,1.92.2.16,1.92.2.17

russell russell
Mon Oct 31 20:05:39 CST 2005


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

Modified Files:
      Tag: v1-0
	rtp.c 
Log Message:
prevent possible seg fault (issue #5502)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.92.2.16
retrieving revision 1.92.2.17
diff -u -d -r1.92.2.16 -r1.92.2.17
--- rtp.c	26 Aug 2005 16:56:07 -0000	1.92.2.16
+++ rtp.c	1 Nov 2005 00:57:42 -0000	1.92.2.17
@@ -342,7 +342,7 @@
 	unsigned int rtcpdata[1024];
 	char iabuf[INET_ADDRSTRLEN];
 	
-	if (!rtp->rtcp)
+	if (!rtp || !rtp->rtcp)
 		return &null_frame;
 
 	len = sizeof(sin);




More information about the svn-commits mailing list