]> git.sur5r.net Git - openldap/commitdiff
fix TTL tolerance (ITS#7017, patch by jvcelak@redhat.com)
authorPierangelo Masarati <ando@OpenLDAP.org>
Wed, 17 Aug 2011 18:56:55 +0000 (12:56 -0600)
committerPierangelo Masarati <ando@OpenLDAP.org>
Wed, 17 Aug 2011 18:57:56 +0000 (12:57 -0600)
servers/slapd/overlays/dds.c

index 56d299fdb0142148d5c7df7895458bab568b3100..661b30942bed542b3029b621ab0ab9436a91dee5 100644 (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 );