Allow LWIP_SOCKET_OFFSET with an external FD_SET

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Our Air Quality
2017-10-08 14:26:34 +11:00
committed by goldsimon
parent 0882e0ba89
commit 4d21d8da23
2 changed files with 5 additions and 4 deletions

View File

@@ -1910,7 +1910,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
timeout ? (s32_t)timeout->tv_sec : (s32_t) - 1,
timeout ? (s32_t)timeout->tv_usec : (s32_t) - 1));
if ((maxfdp1 < 0) || (maxfdp1 > (FD_SETSIZE + LWIP_SOCKET_OFFSET))) {
if ((maxfdp1 < 0) || (maxfdp1 > LWIP_SELECT_MAXNFDS)) {
set_errno(EINVAL);
return -1;
}