mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
Allocate new Acct-Session-Id on EAPOL-Logoff
Stop accounting session on EAPOL-Logoff and use new Acct-Session-Id if STA authenticates again within same association after this.
This commit is contained in:
parent
39e50be082
commit
b1fa8bf129
@ -766,6 +766,8 @@ void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
|
|||||||
"from STA");
|
"from STA");
|
||||||
sta->acct_terminate_cause =
|
sta->acct_terminate_cause =
|
||||||
RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
|
RADIUS_ACCT_TERMINATE_CAUSE_USER_REQUEST;
|
||||||
|
accounting_sta_stop(hapd, sta);
|
||||||
|
accounting_sta_get_id(hapd, sta);
|
||||||
sta->eapol_sm->eapolLogoff = TRUE;
|
sta->eapol_sm->eapolLogoff = TRUE;
|
||||||
sta->eapol_sm->dot1xAuthEapolLogoffFramesRx++;
|
sta->eapol_sm->dot1xAuthEapolLogoffFramesRx++;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user