fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)

This commit is contained in:
Pierangelo Masarati 2011-08-17 12:56:55 -06:00
parent fb83bf08bc
commit 17cfffdd29

View File

@ -156,7 +156,7 @@ dds_expire( void *ctx, dds_info_t *di )
op->ors_slimit = SLAP_NO_LIMIT;
op->ors_attrs = slap_anlist_no_attrs;
expire = slap_get_time() + di->di_tolerance;
expire = slap_get_time() - di->di_tolerance;
ts.bv_val = tsbuf;
ts.bv_len = sizeof( tsbuf );
slap_timestamp( &expire, &ts );