[asterisk-commits] qwell: branch 1.4 r71915 - /branches/1.4/main/rtp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 26 15:36:09 CDT 2007
Author: qwell
Date: Tue Jun 26 15:36:09 2007
New Revision: 71915
URL: http://svn.digium.com/view/asterisk?view=rev&rev=71915
Log:
Don't dereference a pointer that may be NULL here.
Issue 10017.
Modified:
branches/1.4/main/rtp.c
Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?view=diff&rev=71915&r1=71914&r2=71915
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Tue Jun 26 15:36:09 2007
@@ -2525,6 +2525,9 @@
struct ast_rtp *rtp = data;
int res;
+ if (!rtp || !rtp->rtcp)
+ return 0;
+
if (rtp->txcount > rtp->rtcp->lastsrtxcount)
res = ast_rtcp_write_sr(data);
else
More information about the asterisk-commits
mailing list