dovecot-2.2: ioloop-kqueue: Added assert

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 20 00:59:45 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/c8b1e5833a28
changeset: 16777:c8b1e5833a28
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 20 00:59:36 2013 +0300
description:
ioloop-kqueue: Added assert

diffstat:

 src/lib/ioloop-kqueue.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r c140de1b506b -r c8b1e5833a28 src/lib/ioloop-kqueue.c
--- a/src/lib/ioloop-kqueue.c	Fri Sep 20 00:22:15 2013 +0300
+++ b/src/lib/ioloop-kqueue.c	Fri Sep 20 00:59:36 2013 +0300
@@ -131,6 +131,7 @@
 	/* reference all IOs */
 	for (i = 0; i < ret; i++) {
 		io = (void *)events[i].udata;
+		i_assert(io->refcount > 0);
 		io->refcount++;
 	}
 


More information about the dovecot-cvs mailing list