]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ioloop-kqueue: Added assert
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Sep 2013 21:59:36 +0000 (00:59 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 19 Sep 2013 21:59:36 +0000 (00:59 +0300)
src/lib/ioloop-kqueue.c

index d534842f58c531834329cee1e9e2921ed0d70942..1fc3c8fc3c5ceda1de9c5d7282cdbb3a3bafe528 100644 (file)
@@ -131,6 +131,7 @@ void io_loop_handler_run(struct ioloop *ioloop)
        /* reference all IOs */
        for (i = 0; i < ret; i++) {
                io = (void *)events[i].udata;
+               i_assert(io->refcount > 0);
                io->refcount++;
        }