diff options
Diffstat (limited to 'source4/lib/events')
-rw-r--r-- | source4/lib/events/events_standard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/events/events_standard.c b/source4/lib/events/events_standard.c index 16c9464fd0..810e8bbca3 100644 --- a/source4/lib/events/events_standard.c +++ b/source4/lib/events/events_standard.c @@ -311,7 +311,8 @@ static struct timed_event *std_event_add_timed(struct event_context *ev, TALLOC_ for (cur_te = std_ev->timed_events; cur_te; cur_te = cur_te->next) { /* if the new event comes before the current one break */ if (!timeval_is_zero(&cur_te->next_event) && - timeval_compare(&cur_te->next_event, &te->next_event) < 0) { + timeval_compare(&te->next_event, + &cur_te->next_event) < 0) { break; } |