Mercurial > dovecot > original-hg > dovecot-1.2
changeset 344:2ee7f547201a HEAD
extra checks
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 04 Oct 2002 22:28:16 +0300 |
parents | c756ed5a0351 |
children | 9efeeb4ac5a9 |
files | src/lib/ioloop.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);