[Asterisk-cvs] asterisk rtp.c,1.94,1.95

markster at lists.digium.com markster at lists.digium.com
Thu Nov 11 14:53:51 CST 2004


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

Modified Files:
	rtp.c 
Log Message:
Fix segfault


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- rtp.c	30 Oct 2004 01:52:12 -0000	1.94
+++ rtp.c	11 Nov 2004 19:55:09 -0000	1.95
@@ -493,14 +493,14 @@
 	    if (rtp->lasteventseqn <= seqno) {
 	      f = process_rfc2833(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
 	      rtp->lasteventseqn = seqno;
-	    }
+	    } else f = NULL;
 	    if (f) return f; else return &null_frame;
 	  } else if (rtpPT.code == AST_RTP_CISCO_DTMF) {
 	    /* It's really special -- process it the Cisco way */
 	    if (rtp->lasteventseqn <= seqno) {
 	      f = process_cisco_dtmf(rtp, rtp->rawdata + AST_FRIENDLY_OFFSET + hdrlen, res - hdrlen);
 	      rtp->lasteventseqn = seqno;
-	    }
+	    } else f = NULL;
 	    if (f) return f; else return &null_frame;
 	  } else if (rtpPT.code == AST_RTP_CN) {
 	    /* Comfort Noise */




More information about the svn-commits mailing list