From 2b20c1eda793fb0c0e923a5dcf8138bee9687edc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 22 Mar 2004 21:23:47 +0000 Subject: [PATCH] Import ITS#2970 fix from HEAD --- 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 af455b9dce..abd7b6ec80 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -851,7 +851,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