[socket] Fix bad parameter passed to select (#4390)
authorLudovic Henry <ludovic@xamarin.com>
Thu, 16 Feb 2017 01:56:49 +0000 (20:56 -0500)
committerGitHub <noreply@github.com>
Thu, 16 Feb 2017 01:56:49 +0000 (20:56 -0500)
commitb7f2b467d640bb619553c14711d31f7b4584f348
tree7f9050c73896147334e6702ed03d7c5d8f93cc3c
parent1063240b8656d5403f807cc52efa4edf1f8a1818
[socket] Fix bad parameter passed to select (#4390)

If fd is equals to FD_SETSIZE, then we pass (FD_SETSIZE + 1) as first parameter to select, making it return EINVAL.
mono/utils/mono-poll.c