res/res_rtp_asterisk: Fix crash in debug from RTCP reports without report block
authorMatthew Jordan <mjordan@digium.com>
Mon, 16 Feb 2015 21:29:39 +0000 (21:29 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 16 Feb 2015 21:29:39 +0000 (21:29 +0000)
commitd808eace5c308bafc9b592d94d7b7c2b98b1e84c
tree5f40ee9dc5da4c82bcf87f8897592e1be5ba70ae
parent55eb8fc068d65ece71371578c55f2414bffd6cfa
res/res_rtp_asterisk: Fix crash in debug from RTCP reports without report block

When RTCP debugging was enabled, an RTCP report without a report block would
cause a crash. This was due to the verbose output not checking to see if the
report_block pointer was NULl before dereferencing it.

This patch adds the necessary check to prevent printing any verbose output
if the far side hasn't provided us the information they should have.

ASTERISK-24791 #close
Reported by: JoshE
Tested by: JoshE
........

Merged revisions 431879 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c