From: Pierangelo Masarati Date: Wed, 30 Mar 2005 20:18:11 +0000 (+0000) Subject: allow dnParent to work in place X-Git-Tag: OPENLDAP_AC_BP~1037 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61bb4bb630460633e13153132dc1a961dc65ef8d;p=openldap allow dnParent to work in place --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 9995213ad9..2e6379a2ee 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -1118,8 +1118,8 @@ dnParent( p++; assert( ATTR_LEADCHAR( p[ 0 ] ) ); - pdn->bv_val = p; pdn->bv_len = dn->bv_len - (p - dn->bv_val); + pdn->bv_val = p; return; }