mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
RADIUS: Do not include Acct-Terminate-Cause in Accounting-On/Off
Per RFC 2866, 5.10, it is invalid to send Acct-Terminate-Cause in Accounting-On and Accounting-Off (this is included only when Acct-Status-Type is set to Stop). Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
parent
236053e532
commit
696544efed
@ -446,14 +446,6 @@ static void accounting_report_state(struct hostapd_data *hapd, int on)
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_TERMINATE_CAUSE,
|
|
||||||
RADIUS_ACCT_TERMINATE_CAUSE_NAS_REBOOT))
|
|
||||||
{
|
|
||||||
wpa_printf(MSG_INFO, "Could not add Acct-Terminate-Cause");
|
|
||||||
radius_msg_free(msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (radius_client_send(hapd->radius, msg, RADIUS_ACCT, NULL) < 0)
|
if (radius_client_send(hapd->radius, msg, RADIUS_ACCT, NULL) < 0)
|
||||||
radius_msg_free(msg);
|
radius_msg_free(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user