]> 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)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 20 Sep 2016 06:16:19 +0000 (09:16 +0300)
handler context must not be NULL here.

src/lib/ioloop-epoll.c

index a6d92b9c7791736bdb4bcd7a16824124d34691e9..6af3f891693d4b017eb35398ac1390df7d70761b 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);