]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix expiration logic for the first PTKSA cache entry
authorVinay Gannevaram <quic_vganneva@quicinc.com>
Thu, 21 Jul 2022 14:47:26 +0000 (20:17 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 2 Sep 2022 14:10:58 +0000 (17:10 +0300)
commit6f8af5974c1b52b473fe910f0bc772e356c6fd98
tree31884e647a047286be26052c1aa6d31eee1f14d0
parent85e28a79bab0df5e1ad9d4608e155f18762ee19b
Fix expiration logic for the first PTKSA cache entry

When an entry is added to the PTKSA cache, timer expiration is not set.
Check the list and set the timer expiration when the list is empty also.
When another entry is added to the list, it is placed before the relavant
entry in the order of expiry time of all entries present in the list.

Fixes: a4e36916168a ("WPA: Add PTKSA cache implementation")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/ptksa_cache.c