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
1.0
Russell Bryant 20 years ago
parent 405ff91e92
commit f7eada3cff

@ -2656,7 +2656,9 @@ static void close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu)
}
ast_unlock_path(vms->curdir);
}
if (vms->deleted)
memset(vms->deleted, 0, sizeof(vms->deleted));
if (vms->heard)
memset(vms->heard, 0, sizeof(vms->heard));
}

Loading…
Cancel
Save