From: Howard Chu Date: Wed, 8 May 2002 23:04:11 +0000 (+0000) Subject: Fix dnParent: must always return a pointer relative to the input pointer. X-Git-Tag: OPENLDAP_REL_ENG_2_MP~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ba9ac4d9e35a53d35e30575e1c839424de0ad7b;p=openldap Fix dnParent: must always return a pointer relative to the input pointer. --- 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; }