]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix crash when RTCP is not available during SSRC change
authorMatthew Jordan <mjordan@digium.com>
Tue, 22 Oct 2013 23:01:38 +0000 (23:01 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 22 Oct 2013 23:01:38 +0000 (23:01 +0000)
commit9e222d2fcd1f9fd6325cca0babce02aecd9a8480
tree11e3b26033527479a9a6899a9684af0593e97912
parentbca6c2fb4b1618d4f2ef771f260e2965715e1ab4
res_rtp_asterisk: Fix crash when RTCP is not available during SSRC change

In r400089, a patch was put in to correct erroneous RTCP statistic resets.
Unfortunately, ast_rtp_read can be called on an RTP instance that does not
have RTCP information. This patch prevents that crash by only resetting
the statistics if we do actually have an RTCP instance.

(issue AST-1174)

(closes issue ASTERISK-22667)
Reported by: John Bigelow
........

Merged revisions 401445 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 401446 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/11.2@401449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c