aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-24 02:57:22 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-24 02:57:22 (GMT)
commit5100f7b68f73e73d99541e6e6442afb536b5211e (patch)
treee07869550f9ac08a5c5cd2a3dd8494bcac381459
parent4f2b693a94a1ea57c16cb705c91ee32fcf0c9459 (diff)
downloadhostap-history-5100f7b68f73e73d99541e6e6442afb536b5211e.zip
hostap-history-5100f7b68f73e73d99541e6e6442afb536b5211e.tar.gz
hostap-history-5100f7b68f73e73d99541e6e6442afb536b5211e.tar.bz2
Set PMKSA cache expiration timeout when adding the first entry to the
cache. This allows non-preauth entries to be expired based on dot11RSNAConfigPMKLifetime.
-rw-r--r--wpa_supplicant/preauth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/preauth.c b/wpa_supplicant/preauth.c
index ae5ab96..318a90b 100644
--- a/wpa_supplicant/preauth.c
+++ b/wpa_supplicant/preauth.c
@@ -197,6 +197,7 @@ pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk,
if (prev == NULL) {
entry->next = sm->pmksa;
sm->pmksa = entry;
+ pmksa_cache_set_expiration(sm);
} else {
entry->next = prev->next;
prev->next = entry;