ITS#7037 fix syncrepl_add_glue for empty suffix

This commit is contained in:
Howard Chu 2011-09-30 02:10:37 -07:00
parent 9b082bf716
commit 638566f155

View File

@ -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