diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-10-27 13:26:59 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-10-27 13:26:59 -0500 |
commit | f20b5ef36e3215e061a423303fae2558a165a325 (patch) | |
tree | 430c9bb3f0fe03956685ca9749a61b841e3116a5 | |
parent | 46863c9d9a3a270ef4b795d132c2b3d9853f0f2d (diff) | |
parent | 14496ce1e5bbc9b2192ca8f882ecb99887c5d40a (diff) |
Merge "app_voicemail: Clear voice mailbox in MailboxExists and MAILBOX_EXISTS." into 13
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5eb767c1c..bee684e4e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12450,6 +12450,7 @@ static int vm_box_exists(struct ast_channel *chan, const char *data) context++; } + memset(&svm, 0, sizeof(svm)); vmu = find_user(&svm, context, args.mbox); if (vmu) { pbx_builtin_setvar_helper(chan, "VMBOXEXISTSSTATUS", "SUCCESS"); @@ -12481,6 +12482,7 @@ static int acf_mailbox_exists(struct ast_channel *chan, const char *cmd, char *a ast_log(AST_LOG_WARNING, "MAILBOX_EXISTS is deprecated. Please use ${VM_INFO(%s,exists)} instead.\n", args); } + memset(&svm, 0, sizeof(svm)); vmu = find_user(&svm, ast_strlen_zero(arg.context) ? "default" : arg.context, arg.mbox); ast_copy_string(buf, vmu ? "1" : "0", len); free_user(vmu); |