aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-01 15:19:23 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-01 20:36:52 (GMT)
commit1a7ed38670489f84fbfbdc1d8695e9e56df0fdd1 (patch)
tree08ea4dfe2fcbaa6c8e804321b4bad6d4291e83fc /src/radius
parentec1c483de0518d7f272df02a7d459f25eec383b3 (diff)
downloadhostap-1a7ed38670489f84fbfbdc1d8695e9e56df0fdd1.zip
hostap-1a7ed38670489f84fbfbdc1d8695e9e56df0fdd1.tar.gz
hostap-1a7ed38670489f84fbfbdc1d8695e9e56df0fdd1.tar.bz2
RADIUS client: Fix a copy-paste error in accounting server failover
Commit 347c55e216f22002246e378097a16ecb24b7c106 ('RADIUS client: Re-try connection if socket is closed on retransmit') added a new option for initialing RADIUS server failover from radius_client_retransmit(), but ended up trying to change authentication servers when accounting server was supposed to be changed due to a copy-paste issue. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c
index 76c76a6..e9d4a55 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -343,7 +343,7 @@ static int radius_client_retransmit(struct radius_client_data *radius,
radius_client_init_acct(radius);
if (radius->acct_sock < 0 && conf->num_acct_servers > 1) {
prev_num_msgs = radius->num_msgs;
- radius_client_auth_failover(radius);
+ radius_client_acct_failover(radius);
if (prev_num_msgs != radius->num_msgs)
return 0;
}