commit 225a28f364c571bc82d6d54d40e6b3bc9bf180d0
parent b40d7460b3ced676a6b84e19cd95f03fa97cd93d
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Thu, 13 Aug 2020 02:50:14 +0200
eapol: Don't try setting protocol_version in eapol_rx_auth_packet
In authenticator mode we'll always have protocol_version set from the
start so the condition is always going to be false.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/eapol.c b/src/eapol.c
@@ -2210,9 +2210,6 @@ static void eapol_rx_auth_packet(uint16_t proto, const uint8_t *from,
{
struct eapol_sm *sm = user_data;
- if (!sm->protocol_version)
- sm->protocol_version = frame->header.protocol_version;
-
switch (frame->header.packet_type) {
case 3: /* EAPOL-Key */
eapol_auth_key_handle(sm, frame);