Skip to content

Commit 0536874

Browse files
author
Mika Leppänen
committed
Removed empty EAPOL-key message send after 4WH completion to nodes on relay
1 parent 8a2a683 commit 0536874

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
### Bug fixes
1414
* Added ignoring of retry messages from RADIUS server when waiting EAP-TLS
15+
* Removed empty EAPOL-key message send after 4WH completion to nodes on relay
1516

1617

1718
## Release v13.0.0 (15-04-2021)

source/6LoWPAN/ws/ws_eapol_auth_relay.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ static void ws_eapol_auth_relay_socket_cb(void *cb)
165165
eui_64 = ptr;
166166
ptr += 8;
167167
uint16_t data_len = cb_data->d_len - 26;
168+
/* If EAPOL PDU data length is zero (message contains only supplicant EUI-64 and KMP ID)
169+
* i.e. is purge message and is not going to authenticator local relay then ignores message
170+
*/
171+
if (data_len == 1 && !addr_ipv6_equal(relay_ip_addr.address, eapol_auth_relay->relay_addr.address)) {
172+
ns_dyn_mem_free(socket_pdu);
173+
return;
174+
}
168175
ws_eapol_relay_lib_send_to_relay(eapol_auth_relay->socket_id, eui_64, &relay_ip_addr,
169176
ptr, data_len);
170177
ns_dyn_mem_free(socket_pdu);

0 commit comments

Comments
 (0)