From 99ee94a3de0c299ae243966f03dffbb30c2a25e5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 22 Nov 2004 03:56:27 +0000 Subject: [PATCH] Tweak findcsn conditions for validating cookie csn --- servers/slapd/overlays/syncprov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 3690d45a6c..7b6cd33d6d 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -257,9 +257,9 @@ syncprov_findcsn( Operation *op, int mode ) } else { if ( locked ) { ldap_pvt_thread_mutex_unlock( &si->si_csn_mutex ); - locked = 1; + locked = 0; } - cf.f_choice = LDAP_FILTER_EQUALITY; + cf.f_choice = LDAP_FILTER_LE; fop.ors_attrsonly = 1; fop.ors_attrs = slap_anlist_no_attrs; fop.ors_slimit = 1; -- 2.39.5