Skip to content

Commit cce3fc7

Browse files
author
Mika Leppänen
committed
Security protocols are no longer started second time on authenticator
When initial EAPOL-Key is received, authenticator now checks whether the authentication protocol, which would be triggered, is already ongoing, and ignores message if it is. This filters the EAPOL-Key messages received several times (due to lower layer retransmissions).
1 parent fdd6c2d commit cce3fc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_pae_auth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,11 @@ static void ws_pae_auth_next_kmp_trigger(pae_auth_t *pae_auth, supp_entry_t *sup
862862
if (next_type == KMP_TYPE_NONE) {
863863
// All done
864864
return;
865+
} else {
866+
if (ws_pae_lib_kmp_list_type_get(&supp_entry->kmp_list, next_type) != NULL) {
867+
tr_info("KMP already ongoing; ignored, eui-64: %s", trace_array(kmp_address_eui_64_get(supp_entry->addr), 8));
868+
return;
869+
}
865870
}
866871

867872
// Increases waiting time for supplicant authentication

0 commit comments

Comments
 (0)