aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_client.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-05-30 13:19:51 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-30 15:08:54 (GMT)
commitc1fb75a6e218825c13ac2e25991a2a945fe8d6e0 (patch)
tree19888d4440e697838d1bfb78a09d8518e3bc8de8 /src/radius/radius_client.c
parent9ed40766735a9628cc6c936076b175e6f66534bb (diff)
downloadhostap-c1fb75a6e218825c13ac2e25991a2a945fe8d6e0.zip
hostap-c1fb75a6e218825c13ac2e25991a2a945fe8d6e0.tar.gz
hostap-c1fb75a6e218825c13ac2e25991a2a945fe8d6e0.tar.bz2
RADIUS client: Handle ENETUNREACH similarly to other failure cases
This is one more possible send() error that should trigger RADIUS server change if multiple servers are configured. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius/radius_client.c')
-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 5199da7..6049b36 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -302,7 +302,7 @@ static void radius_client_handle_send_error(struct radius_client_data *radius,
int _errno = errno;
wpa_printf(MSG_INFO, "send[RADIUS]: %s", strerror(errno));
if (_errno == ENOTCONN || _errno == EDESTADDRREQ || _errno == EINVAL ||
- _errno == EBADF) {
+ _errno == EBADF || _errno == ENETUNREACH) {
hostapd_logger(radius->ctx, NULL, HOSTAPD_MODULE_RADIUS,
HOSTAPD_LEVEL_INFO,
"Send failed - maybe interface status changed -"