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:
Mark Spencer
2004-07-26 13:16:57 +00:00
parent 25afd9876c
commit 0abd9ec096
+2 -1
View File
@@ -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