]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Ensure handler_context is not NULL
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 16 Sep 2016 12:50:22 +0000 (15:50 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 20 Sep 2016 08:50:30 +0000 (11:50 +0300)
handler context must not be NULL here.

src/lib/ioloop-epoll.c

index c2fe1a94867edad461fbc486b07835557466a516..1d636667e94e6d561310f026626f6286ac9a92b2 100644 (file)
@@ -173,6 +173,8 @@ void io_loop_handler_run_internal(struct ioloop *ioloop)
        int msecs, ret, i, j;
        bool call;
 
+       i_assert(ctx != NULL);
+
         /* get the time left for next timeout task */
        msecs = io_loop_get_wait_time(ioloop, &tv);