From 52da8d98622d48366a5a4cc1dbf22e641636c09f Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sat, 12 Nov 2005 02:39:06 +0000 Subject: issue #5704 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7085 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/app_voicemail.c') diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index c8a694c39..238623fed 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2285,7 +2285,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i make_dir(fromdir, sizeof(fromdir), vmu->context, vmu->mailbox, frombox); make_file(frompath, sizeof(frompath), fromdir, msgnum); - if (vm_lock_path(topath)) + if (vm_lock_path(todir)) return ERROR_LOCK_PATH; recipmsgnum = 0; @@ -2300,7 +2300,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i } else { ast_log(LOG_ERROR, "Recipient mailbox %s@%s is full\n", recip->mailbox, recip->context); } - ast_unlock_path(topath); + ast_unlock_path(todir); notify_new_message(chan, recip, recipmsgnum, duration, fmt, chan->cid.cid_num, chan->cid.cid_name); return 0; -- cgit v1.2.3