]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 06:47:32 +0000 (06:47 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 06:47:32 +0000 (06:47 +0000)
servers/slapd/ldapsync.c

index 652622d0c9f6faa6df18b479a2972fe31e6f4ff0..95eb9e83d5952a77fe6bcb4a880d72f316171b57 100644 (file)
@@ -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 )