From: Jong Hyuk Choi Date: Tue, 22 Jun 2004 23:23:37 +0000 (+0000) Subject: more timelimit cleanup X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~190 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28bd88d28960764b540e9f816110dcd7a06a95ea;p=openldap more timelimit cleanup --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 4f7a3650e9..9434a8fe66 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -155,12 +155,12 @@ ldap_sync_search( ctrls[1] = NULL; } - timeout.tv_sec = si->si_tlimit > 0 ? si->si_tlimit : 1; + timeout.tv_sec = si->si_tlimit; timeout.tv_usec = 0; rc = ldap_search_ext( si->si_ld, si->si_base.bv_val, si->si_scope, si->si_filterstr.bv_val, si->si_attrs, si->si_attrsonly, - ctrls, NULL, si->si_tlimit < 0 ? NULL : &timeout, + ctrls, NULL, si->si_tlimit > 0 ? &timeout : NULL, si->si_slimit, &msgid ); ber_free_buf( ber ); return rc;