From c1fb75a6e218825c13ac2e25991a2a945fe8d6e0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 30 May 2014 16:19:51 +0300 Subject: [PATCH] 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 --- src/radius/radius_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c index 5199da7f4..6049b363e 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 -"