]> git.sur5r.net Git - openldap/commitdiff
Fix dnParent: must always return a pointer relative to the input pointer.
authorHoward Chu <hyc@openldap.org>
Wed, 8 May 2002 23:04:11 +0000 (23:04 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 8 May 2002 23:04:11 +0000 (23:04 +0000)
servers/slapd/dn.c

index e92364c7e3895e4e0d725be543952485d158f778..75a349b4333dfecf05e838aad623154e6e47c670 100644 (file)
@@ -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;
        }