diff options
Diffstat (limited to 'source4/lib/events/events.c')
-rw-r--r-- | source4/lib/events/events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/events/events.c b/source4/lib/events/events.c index 23026166a2..cf165c99dc 100644 --- a/source4/lib/events/events.c +++ b/source4/lib/events/events.c @@ -317,8 +317,8 @@ struct timed_event *event_add_timed(struct event_context *ev, TALLOC_CTX *mem_ct DLIST_ADD(ev->timed_events, e); } else { for (te=ev->timed_events;te && te->next;te=te->next) { - if (!timeval_is_zero(&te->next_event) && - timeval_compare(&te->next_event, &e->next_event) < 0) { + if (!timeval_is_zero(&te->next->next_event) && + timeval_compare(&te->next->next_event, &e->next_event) < 0) { break; } } |