]> granicus.if.org Git - libevent/commitdiff
Fix the assert I added to epoll.c: spotted by Dmitry Novikov
authorNick Mathewson <nickm@torproject.org>
Wed, 16 Sep 2009 17:17:57 +0000 (17:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 16 Sep 2009 17:17:57 +0000 (17:17 +0000)
svn:r1432

epoll.c

diff --git a/epoll.c b/epoll.c
index 02906d9b568b427d9a84b7069d280da68c0714f3..c3d85ebf2b109fcaa48a6dade7225fb656eac47b 100644 (file)
--- a/epoll.c
+++ b/epoll.c
@@ -163,7 +163,7 @@ epoll_dispatch(struct event_base *base, struct timeval *tv)
        }
 
        event_debug(("%s: epoll_wait reports %d", __func__, res));
-       assert(res < epollop->nevents);
+       assert(res <= epollop->nevents);
 
        for (i = 0; i < res; i++) {
                int what = events[i].events;