From: Howard Chu Date: Thu, 26 Feb 2004 02:58:12 +0000 (+0000) Subject: ITS#2970 fix build_new_dn for zero-length parent DN X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~411 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0aebe2e51a250df46d4983e82107194be15caa81;p=openldap ITS#2970 fix build_new_dn for zero-length parent DN --- 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; }