Commit a187d3e0 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

Assert that we never try to fakepoll on sock -1.


svn:r1774
parent a16ec398
......@@ -60,6 +60,7 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
for (idx = 0; idx < nfds; ++idx) {
ufds[idx].revents = 0;
fd = ufds[idx].fd;
assert (fd >= 0);
if (fd > maxfd) {
maxfd = fd;
#ifdef MS_WINDOWS
......
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