From: Howard Chu Date: Mon, 5 Feb 2007 06:47:32 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~84 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=36571123cab07e490888b63ce90020ae211882db;p=openldap Fix prev commit --- diff --git a/servers/slapd/ldapsync.c b/servers/slapd/ldapsync.c index 652622d0c9..95eb9e83d5 100644 --- a/servers/slapd/ldapsync.c +++ b/servers/slapd/ldapsync.c @@ -185,8 +185,9 @@ slap_parse_sync_cookie( slap_syntax_validate_func *validate; struct berval stamp; - csn_str = next + STRLENOF("csn="); + next += STRLENOF("csn="); while ( next < end ) { + csn_str = next; /* FIXME use csnValidate when it gets implemented */ csn_ptr = strchr( csn_str, '#' ); if ( !csn_ptr || csn_ptr > end )