mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Add missing NULL check to acquire_bridge() function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5509,6 +5509,10 @@ static struct ast_bridge *acquire_bridge(struct ast_channel *chan)
|
||||
bridge = ast_channel_get_bridge(chan);
|
||||
ast_channel_unlock(chan);
|
||||
|
||||
if (!bridge) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ast_test_flag(&bridge->feature_flags, AST_BRIDGE_FLAG_MASQUERADE_ONLY)) {
|
||||
ao2_ref(bridge, -1);
|
||||
bridge = NULL;
|
||||
|
Reference in New Issue
Block a user