From 0aebe2e51a250df46d4983e82107194be15caa81 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 26 Feb 2004 02:58:12 +0000 Subject: [PATCH] ITS#2970 fix build_new_dn for zero-length parent DN --- 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 d9a6c913b0..a1b881bf1a 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -843,7 +843,7 @@ build_new_dn( struct berval * new_dn, { char *ptr; - if ( parent_dn == NULL ) { + if ( parent_dn == NULL || parent_dn->bv_len == 0 ) { ber_dupbv( new_dn, newrdn ); return; } -- 2.39.5