diff --git a/src/lxc/mainloop.c b/src/lxc/mainloop.c index 97673bb93..fcae73995 100644 --- a/src/lxc/mainloop.c +++ b/src/lxc/mainloop.c @@ -139,7 +139,7 @@ int lxc_mainloop_del_handler(struct lxc_epoll_descr *descr, int fd) for (j = 0; j < descr->nfds; j++) { if (i == j) continue; - ev[idx] = descr->ev[idx]; + ev[idx] = descr->ev[j]; idx++; }