diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-09-28 19:33:00 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-09-28 19:33:00 +0000 |
commit | 90aec0b0e3002ada8f0448dee04ef319fa6f873d (patch) | |
tree | 44166a8581ae336c475391a156a32c5b08ad1f3c /apps | |
parent | 380005fea402f8ebf5ad754edb7c176162f4ba8f (diff) |
fix logic error that breaks queue exit (issue #5312)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 3f7c1614b..626c7ca26 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1021,7 +1021,8 @@ static int valid_exit(struct queue_ent *qe, char digit) } /* We have an exact match */ - if (ast_goto_if_exists(qe->chan, qe->context, qe->digits, 1)) { + if (!ast_goto_if_exists(qe->chan, qe->context, qe->digits, 1)) { + /* Return 1 on a successful goto */ return 1; } return 0; |