mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
eapol: Check handshake_state_get_pmkid return value
Don't proceed with the handshake if handshake_state_get_pmkid fails (shouldn't happen, but it's an error situation)
This commit is contained in:
parent
9d9f8331fa
commit
6bf365d9a4
@ -980,8 +980,10 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm,
|
|||||||
} else if (pmkid) {
|
} else if (pmkid) {
|
||||||
uint8_t own_pmkid[16];
|
uint8_t own_pmkid[16];
|
||||||
|
|
||||||
if (handshake_state_get_pmkid(sm->handshake, own_pmkid) &&
|
if (!handshake_state_get_pmkid(sm->handshake, own_pmkid))
|
||||||
memcmp(pmkid, own_pmkid, 16)) {
|
goto error_unspecified;
|
||||||
|
|
||||||
|
if (memcmp(pmkid, own_pmkid, 16)) {
|
||||||
l_debug("Authenticator sent a PMKID that didn't match");
|
l_debug("Authenticator sent a PMKID that didn't match");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user