mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
Remove unnecessary PMKSA cache freeing step
_pmksa_cache_free_entry() is a static function that is never called with entry == NULL, so there is no need to check for that. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5b7aeddcd7
commit
8c8d26aada
@ -37,8 +37,6 @@ 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)
|
||||||
{
|
{
|
||||||
if (entry == NULL)
|
|
||||||
return;
|
|
||||||
os_free(entry->identity);
|
os_free(entry->identity);
|
||||||
wpabuf_free(entry->cui);
|
wpabuf_free(entry->cui);
|
||||||
#ifndef CONFIG_NO_RADIUS
|
#ifndef CONFIG_NO_RADIUS
|
||||||
|
Loading…
Reference in New Issue
Block a user