From bcfaad2b62817f2ba95d063cb249b6edf10c61be Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 10 Aug 2016 16:37:39 -0500 Subject: [PATCH] eapol: Make EAP packets use sm->protocol_version Instead of hard-coding the EAPoL version to 2004 for all EAP packets, use the version from eapol_sm. --- src/eapol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index e9223af2..eb077138 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -1435,7 +1435,7 @@ static void eapol_eap_msg_cb(const uint8_t *eap_data, size_t len, uint8_t buf[sizeof(struct eapol_frame) + len]; struct eapol_frame *frame = (struct eapol_frame *) buf; - frame->header.protocol_version = EAPOL_PROTOCOL_VERSION_2004; + frame->header.protocol_version = sm->protocol_version; frame->header.packet_type = 0; l_put_be16(len, &frame->header.packet_len);