[asterisk-commits] app voicemail: Clear voice mailbox in MailboxExists and MAIL... (asterisk[11.24])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 27 12:08:12 CDT 2016
Anonymous Coward #1000019 has submitted this change and it was merged. ( https://gerrit.asterisk.org/4210 )
Change subject: app_voicemail: Clear voice mailbox in MailboxExists and MAILBOX_EXISTS.
......................................................................
app_voicemail: Clear voice mailbox in MailboxExists and MAILBOX_EXISTS.
When executing the MailboxExists dialplan application and
MAILBOX_EXISTS dialplan function the passed in temporary voice
mailbox was not cleared, causing it to try to free garbage.
ASTERISK-26503 #close
Change-Id: Ie21ccfa1b80b9c59318e596f6b8e17da2b5a7cb3
---
M apps/app_voicemail.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
Anonymous Coward #1000019: Verified
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 4f8302b..cc931f1 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -12050,6 +12050,7 @@
context++;
}
+ memset(&svm, 0, sizeof(svm));
vmu = find_user(&svm, context, args.mbox);
if (vmu) {
pbx_builtin_setvar_helper(chan, "VMBOXEXISTSSTATUS", "SUCCESS");
@@ -12081,6 +12082,7 @@
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);
--
To view, visit https://gerrit.asterisk.org/4210
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie21ccfa1b80b9c59318e596f6b8e17da2b5a7cb3
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11.24
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-commits
mailing list