From 61bb4bb630460633e13153132dc1a961dc65ef8d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 30 Mar 2005 20:18:11 +0000 Subject: [PATCH] allow dnParent to work in place --- servers/slapd/dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5