From 9ba9ac4d9e35a53d35e30575e1c839424de0ad7b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 8 May 2002 23:04:11 +0000 Subject: [PATCH] Fix dnParent: must always return a pointer relative to the input pointer. --- servers/slapd/dn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5