Skip to content
Snippets Groups Projects
Commit 1bb19bec authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix VMAuthenticate application (bug #2775)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 94994626
No related branches found
No related tags found
No related merge requests found
...@@ -3412,10 +3412,11 @@ static int vm_execmain(struct ast_channel *chan, void *data) ...@@ -3412,10 +3412,11 @@ static int vm_execmain(struct ast_channel *chan, void *data)
skipuser++; skipuser++;
else else
valid = 0; 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) { if (!res) {
valid = 1; valid = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment