mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
ITS#3542 if slapd processes too slowly, time diff can go negative
This commit is contained in:
parent
f955f17076
commit
d1050c5aa2
1 changed files with 1 additions and 1 deletions
|
|
@ -1674,7 +1674,7 @@ slapd_daemon_task(
|
|||
|
||||
if ( cat != NULL ) {
|
||||
time_t diff = difftime( cat->tv_sec, now );
|
||||
if ( diff == 0 )
|
||||
if ( diff < 1 )
|
||||
diff = tdelta;
|
||||
if ( tvp == NULL || diff < tv.tv_sec ) {
|
||||
tv.tv_sec = diff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue