erp: zero keys on free

This commit is contained in:
James Prestwood 2019-05-03 12:52:17 -07:00 committed by Denis Kenzior
parent 14ac9e4aeb
commit b0ef0a79a8
1 changed files with 4 additions and 0 deletions

View File

@ -351,6 +351,10 @@ void erp_free(struct erp_state *erp)
{
erp_cache_put(erp->cache);
explicit_bzero(erp->rmsk, sizeof(erp->rmsk));
explicit_bzero(erp->r_ik, sizeof(erp->r_ik));
explicit_bzero(erp->r_rk, sizeof(erp->r_rk));
l_free(erp);
}