]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import ITS#2970 fix from HEAD
authorHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:23:47 +0000 (21:23 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:23:47 +0000 (21:23 +0000)
servers/slapd/dn.c

index af455b9dce88d5e89cfbc1495569bccc29f631ef..abd7b6ec807e3e1dac5aeee22b461e7762595bd4 100644 (file)
@@ -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;
        }