From 36571123cab07e490888b63ce90020ae211882db Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 5 Feb 2007 06:47:32 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/ldapsync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )