aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 00e009307..9f0be0982 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -462,7 +462,8 @@ static void closeNextErroredInterface(void)
if (interfaces[i].fd >= 0) {
FD_ZERO(&fds);
FD_SET(interfaces[i].fd, &fds);
- if (select(FD_SETSIZE, &fds, NULL, NULL, &tv) < 0) {
+ if (select(interfaces[i].fd + 1,
+ &fds, NULL, NULL, &tv) < 0) {
closeInterface(&interfaces[i]);
return;
}