From: Howard Chu Date: Fri, 30 Sep 2011 09:10:37 +0000 (-0700) Subject: ITS#7037 fix syncrepl_add_glue for empty suffix X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=638566f155421e3f5605d22aa0c9ab9e2f1b5b0e;p=openldap ITS#7037 fix syncrepl_add_glue for empty suffix --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index af10aee043..3fd5489e53 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -3499,8 +3499,8 @@ syncrepl_add_glue_ancestors( } if ( !BER_BVISEMPTY( &ptr ) ) { - dn.bv_len -= ptr.bv_len + 1; - dn.bv_val += ptr.bv_len + 1; + dn.bv_len -= ptr.bv_len + ( suffrdns != 0 ); + dn.bv_val += ptr.bv_len + ( suffrdns != 0 ); } /* the normalizedDNs are always the same length, no counting