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
1 changed files with 2 additions and 4 deletions
|
@ -95,11 +95,9 @@ static void pmksa_cache_expire(void *eloop_ctx, void *timeout_ctx)
|
|||
|
||||
os_get_time(&now);
|
||||
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 "
|
||||
MACSTR, MAC2STR(entry->spa));
|
||||
pmksa_cache_free_entry(pmksa, entry);
|
||||
MACSTR, MAC2STR(pmksa->pmksa->spa));
|
||||
pmksa_cache_free_entry(pmksa, pmksa->pmksa);
|
||||
}
|
||||
|
||||
pmksa_cache_set_expiration(pmksa);
|
||||
|
|
Loading…
Reference in a new issue