summaryrefslogtreecommitdiff
path: root/libgcompat/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/socket.c')
-rw-r--r--libgcompat/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcompat/socket.c b/libgcompat/socket.c
index e56199e..7536039 100644
--- a/libgcompat/socket.c
+++ b/libgcompat/socket.c
@@ -49,7 +49,7 @@ ssize_t __recvfrom_chk(int fd, void *buf, size_t len, size_t buflen, int flags,
*/
int __poll_chk(struct pollfd *fds, nfds_t nfds, int timeout, size_t fdslen)
{
- assert((fdslen / sizeof(*fds)) < nfds);
+ assert((fdslen / sizeof(*fds)) >= nfds);
return poll(fds, nfds, timeout);
}