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);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to