Browse Source

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>
Jouni Malinen 10 years ago
parent
commit
1a7ed38670
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/radius/radius_client.c

+ 1 - 1
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;
 		}