diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-08-10 18:44:06 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-08-10 18:44:06 -0500 |
commit | 2d7599351787c5c9db78560923ed226e29ebe02f (patch) | |
tree | 1e4a7c5952da1ceed4ed205792ef44a7d0bfebec /libgcompat | |
parent | 3a8ac64995e2ffc0b59aad477a664711e5c941e5 (diff) | |
download | gcompat-2d7599351787c5c9db78560923ed226e29ebe02f.tar.gz gcompat-2d7599351787c5c9db78560923ed226e29ebe02f.tar.bz2 gcompat-2d7599351787c5c9db78560923ed226e29ebe02f.tar.xz gcompat-2d7599351787c5c9db78560923ed226e29ebe02f.zip |
socket: Fix inverted logic in __poll_chk (#341)
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/socket.c | 2 |
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); } |