Remove unused generation of Request Authenticator in Account-Request
Do not generate an unused and invalid Request Authenticator (random value) when constructing Accounting-Request packets. The correct Request Authenticator is calculated subsequently in radius_msg_finish_acct() using MD5(msg + shared secret). Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
parent
44a4c52c86
commit
81258efacb
1 changed files with 0 additions and 5 deletions
|
@ -50,11 +50,6 @@ static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (radius_msg_make_authenticator(msg) < 0) {
|
|
||||||
wpa_printf(MSG_INFO, "Could not make Request Authenticator");
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_STATUS_TYPE,
|
if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_STATUS_TYPE,
|
||||||
status_type)) {
|
status_type)) {
|
||||||
wpa_printf(MSG_INFO, "Could not add Acct-Status-Type");
|
wpa_printf(MSG_INFO, "Could not add Acct-Status-Type");
|
||||||
|
|
Loading…
Reference in a new issue