RADIUS client: Fix a copy-paste error in accounting server failover
Commit 347c55e216
('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>
This commit is contained in:
parent
ec1c483de0
commit
1a7ed38670
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ static int radius_client_retransmit(struct radius_client_data *radius,
|
||||||
radius_client_init_acct(radius);
|
radius_client_init_acct(radius);
|
||||||
if (radius->acct_sock < 0 && conf->num_acct_servers > 1) {
|
if (radius->acct_sock < 0 && conf->num_acct_servers > 1) {
|
||||||
prev_num_msgs = radius->num_msgs;
|
prev_num_msgs = radius->num_msgs;
|
||||||
radius_client_auth_failover(radius);
|
radius_client_acct_failover(radius);
|
||||||
if (prev_num_msgs != radius->num_msgs)
|
if (prev_num_msgs != radius->num_msgs)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue