mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-01 20:43:15 -07:00
Fix potential transfer seg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-1
@@ -3210,7 +3210,8 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
|
||||
p->subs[SUB_THREEWAY].owner->_softhangup |= AST_SOFTHANGUP_DEV;
|
||||
else if (res) {
|
||||
/* Don't actually hang up at this point */
|
||||
ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
|
||||
if (p->subs[SUB_THREEWAY].owner)
|
||||
ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
|
||||
break;
|
||||
}
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user