]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine: improved handling of get_rtp_info failure
authorScott Griepentrog <sgriepentrog@digium.com>
Tue, 28 Jan 2014 16:41:43 +0000 (16:41 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Tue, 28 Jan 2014 16:41:43 +0000 (16:41 +0000)
commit8e1dd2e74038e4e7138bd908e37aeb5aadd27450
tree499ba5a59553ea1adb965d2dfb3beaddf12e6358
parentfa0cef4a4876d09949ae2d707452fb50dc85e544
rtp_engine: improved handling of get_rtp_info failure

In ast_rtp_instance_make_compatible(), after a failure of
channel tech call get_rtp_info() to return peer_instance,
the null pointer would be passed to ao2_ref, producing an
error that looked like a refernce counting problem but is
not.  This patch corrects that and adds helpful LOG_ERROR
messages to indicate which failure path occurred.

(issue AST-1276)
Review: https://reviewboard.asterisk.org/r/3156/
........

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@406723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/rtp_engine.c