Chromium Code Reviews| Index: third_party/libevent/epoll.c |
| diff --git a/third_party/libevent/epoll.c b/third_party/libevent/epoll.c |
| index bfb3140eca5e8b8a908f307e7b3fae8722104300..0e70466f64035eee13b6660f70dabc87a2e61877 100644 |
| --- a/third_party/libevent/epoll.c |
| +++ b/third_party/libevent/epoll.c |
| @@ -171,7 +171,7 @@ epoll_recalc(struct event_base *base, void *arg, int max) |
| int nfds; |
| nfds = epollop->nfds; |
| - while (nfds < max) |
| + while (nfds <= max) |
|
agl
2009/06/02 23:18:14
|max| is an index into fds which needs to be valid
|
| nfds <<= 1; |
| fds = realloc(epollop->fds, nfds * sizeof(struct evepoll)); |