aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 20:36:50 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-26 20:36:50 +0000
commitcad3826385d5a5a207aefb5db075a630065e7ed8 (patch)
treeba7284f2285291f2383d5475a332506f40978cde /main/rtp.c
parent2ebf1e8b735cf9874e8a3d0a8ba57ce26cdeeb39 (diff)
Merged revisions 71915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r71915 | qwell | 2007-06-26 15:36:09 -0500 (Tue, 26 Jun 2007) | 4 lines Don't dereference a pointer that may be NULL here. Issue 10017. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71916 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 691d39160..ca2b01c9b 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2709,6 +2709,9 @@ static int ast_rtcp_write(void *data)
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