From 68b914d72b063a8d6acdb9d236e5dbc358796947 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 19 Oct 2009 23:51:08 +0000 Subject: [PATCH] ITS#6338: Fix \0-termination of dnParent(x, x) for one-level DN x. --- 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 35051299e6..3534e7ff9f 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -964,8 +964,8 @@ dnParent( /* one-level dn */ if ( p == NULL ) { - pdn->bv_len = 0; pdn->bv_val = dn->bv_val + dn->bv_len; + pdn->bv_len = 0; return; } -- 2.39.5