From 9f149d70f67d821158002ad1a059eb12bd62bc24 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 30 Nov 2003 03:30:39 +0000 Subject: [PATCH] ITS#2847: fix syncCookie value_match --- servers/slapd/back-bdb/ctxcsn.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/ctxcsn.c b/servers/slapd/back-bdb/ctxcsn.c index 1428d51900..cc8101cd64 100644 --- a/servers/slapd/back-bdb/ctxcsn.c +++ b/servers/slapd/back-bdb/ctxcsn.c @@ -310,11 +310,12 @@ consumer_ctxcsn_retry : ber_bvarray_add( &syncCookie.octet_str, &cookie ); slap_parse_sync_cookie( &syncCookie ); if ( *search_context_csn && - (*search_context_csn)->bv_val != NULL ) { + (*search_context_csn)->bv_val != NULL ) + { value_match( &match, slap_schema.si_ad_entryCSN, slap_schema.si_ad_entryCSN->ad_type->sat_ordering, SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX, - &syncCookie.ctxcsn, *search_context_csn, &text ); + syncCookie.ctxcsn, *search_context_csn, &text ); } if ( match < 0 ) { /* set search_context_csn to the @@ -324,7 +325,7 @@ consumer_ctxcsn_retry : ch_free( *search_context_csn ); } *search_context_csn = ber_dupbv( NULL, - syncCookie.ctxcsn ); + syncCookie.ctxcsn ); } slap_sync_cookie_free( &syncCookie, 0 ); } else { -- 2.39.5