From 638566f155421e3f5605d22aa0c9ab9e2f1b5b0e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Sep 2011 02:10:37 -0700 Subject: [PATCH] ITS#7037 fix syncrepl_add_glue for empty suffix --- servers/slapd/syncrepl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5