]> git.sur5r.net Git - openldap/commitdiff
ITS#3542 - ignore timevals from deferred tasks
authorHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2005 05:03:28 +0000 (05:03 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2005 05:03:28 +0000 (05:03 +0000)
servers/slapd/daemon.c

index eebc46c6f55a0cad64b8df1c1370ab3ff3847d1f..2893a905f90c1f05de7eb85f2332dd0cd2605439 100644 (file)
@@ -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;