]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPA auth: Disconnect STA if MSK cannot be fetched
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Jan 2015 20:31:41 +0000 (22:31 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 29 Jan 2015 20:31:41 +0000 (22:31 +0200)
Previously, it was possible for some corner cases to leave the WPA
authenticator state machine running if PMK could not be derived. Change
this to forcefully disconnect the STA to get more consistent behavior
and faster notification of the error.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c

index f13f141f8f7e221793579388fd395245a9e13880..668cb429dd245915afaf443544a5dc700c3228e1 100644 (file)
@@ -1881,6 +1881,8 @@ SM_STATE(WPA_PTK, INITPMK)
        } else {
                wpa_printf(MSG_DEBUG, "WPA: Could not get PMK, get_msk: %p",
                           sm->wpa_auth->cb.get_msk);
+               sm->Disconnect = TRUE;
+               return;
        }
        os_memset(msk, 0, sizeof(msk));