mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
fix potential crash in close_mailbox (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2655,9 +2655,11 @@ static void close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu)
|
||||
vm_delete(vms->fn);
|
||||
}
|
||||
ast_unlock_path(vms->curdir);
|
||||
}
|
||||
memset(vms->deleted, 0, sizeof(vms->deleted));
|
||||
memset(vms->heard, 0, sizeof(vms->heard));
|
||||
}
|
||||
if (vms->deleted)
|
||||
memset(vms->deleted, 0, sizeof(vms->deleted));
|
||||
if (vms->heard)
|
||||
memset(vms->heard, 0, sizeof(vms->heard));
|
||||
}
|
||||
|
||||
static int vm_play_folder_name(struct ast_channel *chan, char *mbox)
|
||||
|
Reference in New Issue
Block a user