Fix seg in authenticate (bug #3686)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5109 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
803878b54e
commit
9da1ade23d
|
@ -4452,7 +4452,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
|
|||
ast_play_and_wait(chan, "vm-goodbye");
|
||||
return -1;
|
||||
}
|
||||
if (!skipuser) {
|
||||
if (vmu && !skipuser) {
|
||||
memcpy(res_vmu, vmu, sizeof(struct ast_vm_user));
|
||||
}
|
||||
return 0;
|
||||
|
|
Reference in New Issue