]> git.sur5r.net Git - openldap/commitdiff
allow dnParent to work in place
authorPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 20:18:11 +0000 (20:18 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 20:18:11 +0000 (20:18 +0000)
servers/slapd/dn.c

index 9995213ad9c06703f640f3350bd0e1d47a4cb0f3..2e6379a2ee25e6d86c419d932a54ce894c8e1bf5 100644 (file)
@@ -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;
 }