bridge_native_rtp: Fix possible segfaults on leaves/joins
authorJonathan Rose <jrose@digium.com>
Tue, 11 Jun 2013 19:44:47 +0000 (19:44 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 11 Jun 2013 19:44:47 +0000 (19:44 +0000)
commita1f45147c97128bdbc733b5cfa44b53573cb4619
treeec33ce793c4a3488a02d8c3e1e06fe8a478f7984
parentdbdb2b1b3a618a79b3e42c77c05cb2688b4da08d
bridge_native_rtp: Fix possible segfaults on leaves/joins

native_rtp_bridge_get can return any result from the ast_rtp_glue_result
enumerator and the join/leave functions for bridge_native_rtp seem to assume
that if the result wasn't local that it was remote. Meanwhile forbid can be
returned by that function which can mean certain glue pointers are NULL. Then
when the join/leave functions try to use members of that pointer, boom.
Segfault.

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