aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lowe <nick.lowe@lugatech.com>2016-08-14 14:40:11 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-21 21:34:19 (GMT)
commit81258efacb57940a2a902504aec440dc59664c34 (patch)
tree2ddbf2b25efa3cf235c5145db4d6042d995f7f83
parent44a4c52c86bed6ee69b132b1edbd4a619c1efe0e (diff)
downloadhostap-81258efacb57940a2a902504aec440dc59664c34.zip
hostap-81258efacb57940a2a902504aec440dc59664c34.tar.gz
hostap-81258efacb57940a2a902504aec440dc59664c34.tar.bz2
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>
-rw-r--r--src/ap/accounting.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 854174e..0aacc3c 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
@@ -50,11 +50,6 @@ static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
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,
status_type)) {
wpa_printf(MSG_INFO, "Could not add Acct-Status-Type");