diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-11-12 21:14:23 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-11-12 21:14:23 +0000 |
commit | ca648b3d32df43b3adbc5e95dc9b5fc3f61dd9e2 (patch) | |
tree | 1c0b4fc0375f50f8306a010e1c956d0d705428e4 | |
parent | ee9e2c1708dc66f3bf94ffce5904df652ec00e54 (diff) |
Return correct error code if lock path fails. The recent changes to open_mailbox actually caused it to be fixed, but let's be consistent.
Reported by alecdavis in asterisk-dev.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@294910 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 84ff7e9ea..73c4ee2e5 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -7409,7 +7409,7 @@ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu, int box) if (vm_lock_path(vms->curdir)) { ast_log(AST_LOG_ERROR, "Could not open mailbox %s: mailbox is locked\n", vms->curdir); - return -1; + return ERROR_LOCK_PATH; } /* for local storage, checks directory for messages up to maxmsg limit */ |