From 08936c1534465d3efe1ad76ecb8bf8d6d1fb5beb Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 28 Sep 2021 08:46:51 -0700 Subject: [PATCH] eapol: fix incorrect increment appending OCI This was addign an extra byte to the buffer which hostapd accepted unless there was additional data, like the RSNXE. --- src/eapol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index 8498fdb6..3127e066 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -1256,7 +1256,7 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm, ies[ies_len++] = 4 + 3; l_put_be32(HANDSHAKE_KDE_OCI, ies + ies_len); ies_len += 4; - oci_from_chandef(sm->handshake->chandef, ies + ies_len++); + oci_from_chandef(sm->handshake->chandef, ies + ies_len); ies_len += 3; }