diff --git a/subsys/net/lib/sockets/sockets_select.c b/subsys/net/lib/sockets/sockets_select.c index a76c3f7f31e..ff334ce6045 100644 --- a/subsys/net/lib/sockets/sockets_select.c +++ b/subsys/net/lib/sockets/sockets_select.c @@ -92,6 +92,7 @@ int zsock_select(int nfds, zsock_fd_set *readfds, zsock_fd_set *writefds, ored_mask = read_mask | write_mask | except_mask; if (ored_mask == 0U) { + fd_no += sizeof(ored_mask) * 8; continue; }