bridge_native_rtp: Fix crash involving masquerade
authorKinsey Moore <kmoore@digium.com>
Wed, 5 Mar 2014 19:28:31 +0000 (19:28 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 5 Mar 2014 19:28:31 +0000 (19:28 +0000)
commitb5f8f56bd0e43464471ce82a8284cab7488edf67
tree6cd7b35a00b1a83e6cfd85290cb60b0ec7dc53fa
parent15140883d0b9312e0c298d1f4a76ed3aa84fd6b5
bridge_native_rtp: Fix crash involving masquerade

It is possible for a channel to be masqueraded out of a bridge which
means it may no longer have RTP glue to check upon leaving said bridge.
If this situation occurred (it's possible at least during dial and call
pickup) then Asterisk would crash. This change makes sure the glue is
checked before use.

(closes issue AST-1290)
Reported by: John Bigelow
........

Merged revisions 409900 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_native_rtp.c