diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index e92364c7e3..75a349b433 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -624,7 +624,8 @@ dnParent( /* one-level dn */ if ( p == NULL ) { - *pdn = slap_empty_bv; + pdn->bv_len = 0; + pdn->bv_val = dn->bv_val + dn->bv_len; return; }