summaryrefslogtreecommitdiff
path: root/source4/lib/events
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-08 01:01:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:35 -0500
commit579d40052ca988a67f5eb64343948bf1b2c07175 (patch)
treecfc748fb5f058935594e14061a70c18490e38f12 /source4/lib/events
parentc4eeb0459c3a9973deced48bba652d400e9132e8 (diff)
downloadsamba-579d40052ca988a67f5eb64343948bf1b2c07175.tar.gz
samba-579d40052ca988a67f5eb64343948bf1b2c07175.tar.bz2
samba-579d40052ca988a67f5eb64343948bf1b2c07175.zip
r5273: fixed another bug in the code that keeps timed events
sorted. Hopefully it really works now :-) (This used to be commit 34e1a3ad7849df913584074ec406c2fcc40212fc)
Diffstat (limited to 'source4/lib/events')
-rw-r--r--source4/lib/events/events.c4
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;
}
}