]> git.sur5r.net Git - openldap/commitdiff
Fixed bogus handling of objectclass in oc_schema_check.
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 16 Jun 1999 12:11:47 +0000 (12:11 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 16 Jun 1999 12:11:47 +0000 (12:11 +0000)
servers/slapd/schema.c

index 4a1c70d82bbf40b6693ea4d51583383fa45e4e9e..6170afdc974c5e45a7316d143e9e16717c4172fd 100644 (file)
@@ -29,7 +29,7 @@ oc_schema_check( Entry *e )
        if ( (aoc = attr_find( e->e_attrs, "objectclass" )) == NULL ) {
                Debug( LDAP_DEBUG_ANY, "No object class for entry (%s)\n",
                    e->e_dn, 0, 0 );
-               return( 0 );
+               return( 1 );
        }
 
        /* check that the entry has required attrs for each oc */