diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-04 03:41:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-04 03:41:26 +0000 |
commit | df5648081c671e3e592f0595e8b54837f6c203d6 (patch) | |
tree | f4070094dce360d0e0995d3e1645d5584ede093b /apps/app_voicemail.c | |
parent | 754f926eae0912c6693e26fba9f3b94ad219dba2 (diff) |
Fix VMAuthenticate application (bug #2775)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4159 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index cdfc57ebf..058feaebf 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3412,10 +3412,11 @@ static int vm_execmain(struct ast_channel *chan, void *data) skipuser++; else valid = 0; - } - res = vm_authenticate(chan, vms.username, sizeof(vms.username), &vmus, context, prefixstr, skipuser, maxlogins); + if (!valid) { + res = vm_authenticate(chan, vms.username, sizeof(vms.username), &vmus, context, prefixstr, skipuser, maxlogins); + } if (!res) { valid = 1; |