aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-12 02:39:06 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-12 02:39:06 +0000
commit56d8a3c50162c3cc1a9e63ca254ab96fcd401465 (patch)
treeb73a4ffb2fea93c3ec2951447a9486f3443e672a /apps
parentb88097834daf1915e5246cc2ddb94d8c1f857d58 (diff)
issue #5704
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7085 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
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;