mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix VMAuthenticate application (bug #2775)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user