Clear PMKSA cache entry data when freeing them
Avoid leaving the PMK information unnecessarily in memory. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8c8d26aada
commit
cb129db34c
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry)
|
||||||
#ifndef CONFIG_NO_RADIUS
|
#ifndef CONFIG_NO_RADIUS
|
||||||
radius_free_class(&entry->radius_class);
|
radius_free_class(&entry->radius_class);
|
||||||
#endif /* CONFIG_NO_RADIUS */
|
#endif /* CONFIG_NO_RADIUS */
|
||||||
os_free(entry);
|
bin_clear_free(entry, sizeof(*entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ static void pmksa_cache_set_expiration(struct rsn_pmksa_cache *pmksa);
|
||||||
|
|
||||||
static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry)
|
static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry)
|
||||||
{
|
{
|
||||||
os_free(entry);
|
bin_clear_free(entry, sizeof(*entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue