# HG changeset patch # User Timo Sirainen # Date 1033759696 -10800 # Node ID 2ee7f547201aba7eed39c7f3457fa84a9655f698 # Parent c756ed5a0351c34f884f603a4d99a649fa6c4d3e extra checks diff -r c756ed5a0351 -r 2ee7f547201a src/lib/ioloop.c --- a/src/lib/ioloop.c Fri Oct 04 20:15:09 2002 +0300 +++ b/src/lib/ioloop.c Fri Oct 04 22:28:16 2002 +0300 @@ -116,6 +116,8 @@ void io_remove(IO io) { i_assert(io != NULL); + i_assert(io->fd >= 0); + i_assert(io->fd <= current_ioloop->highest_fd); /* notify the real I/O handler */ io_loop_handle_remove(current_ioloop, io->fd, io->condition);