From 3ead49d206ca30f835c70a75b30924dea06fc493 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Mar 2005 05:03:28 +0000 Subject: [PATCH] ITS#3542 - ignore timevals from deferred tasks --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index eebc46c6f5..2893a905f9 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1672,7 +1672,7 @@ slapd_daemon_task( } ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); - if ( cat != NULL ) { + if ( cat && cat->tv_sec ) { time_t diff = difftime( cat->tv_sec, now ); if ( diff == 0 ) diff = tdelta; -- 2.39.5