Verified Commit 2d759935 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

socket: Fix inverted logic in __poll_chk (#341)

parent 3a8ac649
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment