eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6bf365d9a4de6943da7d663f6ded25fffdeeabf4
parent 9d9f8331faa6830857f8237bcda86adb35367357
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Wed, 19 Dec 2018 02:00:42 +0100

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)

Diffstat:
Msrc/eapol.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/eapol.c b/src/eapol.c @@ -980,8 +980,10 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm, } else if (pmkid) { uint8_t own_pmkid[16]; - if (handshake_state_get_pmkid(sm->handshake, own_pmkid) && - memcmp(pmkid, own_pmkid, 16)) { + if (!handshake_state_get_pmkid(sm->handshake, own_pmkid)) + goto error_unspecified; + + if (memcmp(pmkid, own_pmkid, 16)) { l_debug("Authenticator sent a PMKID that didn't match"); /*