[asterisk-commits] mmichelson: branch mmichelson/trunk-digiumphones r365131 - /team/mmichelson/t...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 2 17:11:55 CDT 2012
Author: mmichelson
Date: Wed May 2 17:11:50 2012
New Revision: 365131
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=365131
Log:
memset the vm_state to 0 so that a miscalculated allocation does not occur and cause a crash.
Modified:
team/mmichelson/trunk-digiumphones/apps/app_voicemail.c
Modified: team/mmichelson/trunk-digiumphones/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/trunk-digiumphones/apps/app_voicemail.c?view=diff&rev=365131&r1=365130&r2=365131
==============================================================================
--- team/mmichelson/trunk-digiumphones/apps/app_voicemail.c (original)
+++ team/mmichelson/trunk-digiumphones/apps/app_voicemail.c Wed May 2 17:11:50 2012
@@ -11312,6 +11312,7 @@
{
struct vm_state vms;
int res = 0;
+ memset(&vms, 0, sizeof(vms));
ast_copy_string(vms.username, vmu->mailbox, sizeof(vms.username));
vms.lastmsg = -1;
if (open_mailbox(&vms, vmu, folder)) {
More information about the asterisk-commits
mailing list