]> git.sur5r.net Git - openldap/commitdiff
ITS#3616 skip naming checks for entry with zero-length DN
authorHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 09:59:40 +0000 (09:59 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 09:59:40 +0000 (09:59 +0000)
servers/slapd/schema_check.c

index 0cc2b886ed6c90c8dcc05a32d933dd389be5e77e..253849d3780776e9d551622a0ff6ef5d8abaf7ae 100644 (file)
@@ -739,6 +739,10 @@ entry_naming_check(
        ber_len_t       cnt;
        int             rc = LDAP_SUCCESS;
 
+       if ( BER_BVISEMPTY( &e->e_name )) {
+               return LDAP_SUCCESS;
+       }
+
        /*
         * Get attribute type(s) and attribute value(s) of our RDN
         */