mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Remove unnecessary PMKSA cache list modification
pmksa_cache_free_entry() takes care of updated the list head pointer (pmksa->pmksa), so no need to do this change in the caller. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f2a14be798
commit
b7593d35c1
@ -95,11 +95,9 @@ static void pmksa_cache_expire(void *eloop_ctx, void *timeout_ctx)
|
|||||||
|
|
||||||
os_get_time(&now);
|
os_get_time(&now);
|
||||||
while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) {
|
while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) {
|
||||||
struct rsn_pmksa_cache_entry *entry = pmksa->pmksa;
|
|
||||||
pmksa->pmksa = entry->next;
|
|
||||||
wpa_printf(MSG_DEBUG, "RSN: expired PMKSA cache entry for "
|
wpa_printf(MSG_DEBUG, "RSN: expired PMKSA cache entry for "
|
||||||
MACSTR, MAC2STR(entry->spa));
|
MACSTR, MAC2STR(pmksa->pmksa->spa));
|
||||||
pmksa_cache_free_entry(pmksa, entry);
|
pmksa_cache_free_entry(pmksa, pmksa->pmksa);
|
||||||
}
|
}
|
||||||
|
|
||||||
pmksa_cache_set_expiration(pmksa);
|
pmksa_cache_set_expiration(pmksa);
|
||||||
|
Loading…
Reference in New Issue
Block a user