summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 8134a7ac1c..7750176d8e 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -344,7 +344,7 @@ int event_loop_once(struct event_context *ev)
return 0;
}
- ret = sys_select(maxfd, &r_fds, &w_fds, NULL, &to);
+ ret = sys_select(maxfd+1, &r_fds, &w_fds, NULL, &to);
if (ret == -1 && errno != EINTR) {
return -1;