mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Fix voicemail crash (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3575,8 +3575,10 @@ static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu)
|
||||
ast_unlock_path(vms->curdir);
|
||||
|
||||
done:
|
||||
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));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user