mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
Make sure we don't close a mailbox if we didn't open one (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4713,7 +4713,8 @@ static int vm_execmain(struct ast_channel *chan, void *data)
|
|||||||
char *options;
|
char *options;
|
||||||
|
|
||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
memset(&vms, 0, sizeof(vms));
|
memset(&vms, 0, sizeof(vms));
|
||||||
|
vms.lastmsg = -1;
|
||||||
memset(&vmus, 0, sizeof(vmus));
|
memset(&vmus, 0, sizeof(vmus));
|
||||||
ast_copy_string(fmtc, vmfmts, sizeof(fmtc));
|
ast_copy_string(fmtc, vmfmts, sizeof(fmtc));
|
||||||
if (chan->_state != AST_STATE_UP)
|
if (chan->_state != AST_STATE_UP)
|
||||||
|
|||||||
Reference in New Issue
Block a user