diff --git a/source3/lib/events.c b/source3/lib/events.c index 8134a7ac1c2..7750176d8e4 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;