roken/mini_inetd.c: Don't check against FD_SETSIZE unless necessary
This commit is contained in:
		@@ -124,7 +124,7 @@ mini_inetd_addrinfo (struct addrinfo *ai, rk_socket_t *ret_socket)
 | 
				
			|||||||
	    fds[i] = rk_INVALID_SOCKET;
 | 
						    fds[i] = rk_INVALID_SOCKET;
 | 
				
			||||||
	    continue;
 | 
						    continue;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
#ifdef FD_SETSIZE
 | 
					#ifndef NO_LIMIT_FD_SETSIZE
 | 
				
			||||||
	if (fds[i] >= FD_SETSIZE)
 | 
						if (fds[i] >= FD_SETSIZE)
 | 
				
			||||||
	    errx (1, "fd too large");
 | 
						    errx (1, "fd too large");
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user