mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Fix a crash due to the wrong variable being used when building a directory string.
(closes issue #12027) Reported by: jaroth Patches: forward.patch uploaded by jaroth (license 50) Tested by: jaroth git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2827,7 +2827,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i
|
||||
ast_copy_string(fromdir, dir, sizeof(fromdir));
|
||||
|
||||
make_file(frompath, sizeof(frompath), fromdir, msgnum);
|
||||
make_dir(todir, sizeof(todir), recip->context, recip->mailbox, frombox);
|
||||
make_dir(todir, sizeof(todir), recip->context, recip->mailbox, "INBOX");
|
||||
|
||||
if (vm_lock_path(todir))
|
||||
return ERROR_LOCK_PATH;
|
||||
|
||||
Reference in New Issue
Block a user