diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-26 20:36:09 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-26 20:36:09 +0000 |
commit | 31233a3cff9d3b63228a7d1ed6b3a60a1808a267 (patch) | |
tree | edc37a6047dac6ac7cd6f586b34d071cd26d70bf /main/rtp.c | |
parent | 4bad96a3587eaf6074adc61879dee7151faa13e2 (diff) |
Don't dereference a pointer that may be NULL here.
Issue 10017.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71915 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index 9dd40bf90..8fd056250 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2525,6 +2525,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 |