Skip to content

Commit

Permalink
lib: Ensure handler_context is not NULL
Browse files Browse the repository at this point in the history
handler context must not be NULL here.
  • Loading branch information
cmouse committed Sep 20, 2016
1 parent 15cdc6b commit 80cfaba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/ioloop-epoll.c
Expand Up @@ -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);

Expand Down

0 comments on commit 80cfaba

Please sign in to comment.