mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +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:
@@ -2656,7 +2656,9 @@ static void close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu)
|
|||||||
}
|
}
|
||||||
ast_unlock_path(vms->curdir);
|
ast_unlock_path(vms->curdir);
|
||||||
}
|
}
|
||||||
|
if (vms->deleted)
|
||||||
memset(vms->deleted, 0, sizeof(vms->deleted));
|
memset(vms->deleted, 0, sizeof(vms->deleted));
|
||||||
|
if (vms->heard)
|
||||||
memset(vms->heard, 0, sizeof(vms->heard));
|
memset(vms->heard, 0, sizeof(vms->heard));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user