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:
Jouni Malinen 2015-03-01 17:19:23 +02:00
parent ec1c483de0
commit 1a7ed38670

View file

@ -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;
}