]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_auth: Fix race in rejecting 4-way handshake for entropy
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Sun, 29 Jan 2012 16:11:43 +0000 (18:11 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2012 16:11:43 +0000 (18:11 +0200)
commit40d00d2bfe86ceacf918018c9e322860c746465e
treecf56f51fc1f6dfeee1949f1d24ebdcd3c9205e90
parent1193dc8fd7a9d67d84492141457a7a5ffc541728
wpa_auth: Fix race in rejecting 4-way handshake for entropy

When there is not enough entropy and there are two station associating
at the same time, one of the stations will be rejected, but during
that rejection, the "reject_4way_hs_for_entropy" flag gets cleared. This
may allow the second station to avoid rejection and complete a 4-Way
Handshake with a GTK that will be cleared as soon as more entropy is
available and another station connects.

This reworks the logic to ban all 4-way handshakes until enough entropy
is available.

Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>
src/ap/wpa_auth.c