diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-16 15:22:13 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-16 15:22:13 +0000 |
commit | b3191152121629c2ed7886d22051be77784520bb (patch) | |
tree | 8154fa040fd80cd56de664aa5b285ef046b16a94 /channel.c | |
parent | 74b806c64717abca5f472e52e906ccf8e0349055 (diff) |
avoid returning in the middle of a switch() in ast_answer()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20512 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1496,8 +1496,6 @@ int ast_answer(struct ast_channel *chan) ast_setstate(chan, AST_STATE_UP); if (chan->cdr) ast_cdr_answer(chan->cdr); - ast_channel_unlock(chan); - return res; break; case AST_STATE_UP: if (chan->cdr) @@ -1505,7 +1503,7 @@ int ast_answer(struct ast_channel *chan) break; } ast_channel_unlock(chan); - return 0; + return res; } void ast_deactivate_generator(struct ast_channel *chan) |