From: Mark Michelson Date: Wed, 6 Jun 2007 19:02:33 +0000 (+0000) Subject: Fixing a crash wherein Asterisk would segfault when attempting to leave a voicemail... X-Git-Tag: 1.6.0-beta1~3^2~2465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e156297c114ef71856eb99fc8401fadb4405ef6b;p=thirdparty%2Fasterisk.git Fixing a crash wherein Asterisk would segfault when attempting to leave a voicemail when IMAP storage was enabled. Though no bug was reported to the bugtracker, there was mention of this made as a note on bug 9810 by edhorton. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67784 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index ffbf069188..50da060c5e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -9280,6 +9280,8 @@ static void vmstate_insert(struct vm_state *vms) if (!(v = ast_calloc(1, sizeof(*v)))) return; + + v->vms = vms; if(option_debug > 2) ast_log(LOG_DEBUG, "Inserting vm_state for user:%s, mailbox %s\n",vms->imapuser,vms->username);