3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

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

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);
}