]> git.sur5r.net Git - openldap/commitdiff
Fix abstract schema check
authorKurt Zeilenga <kurt@openldap.org>
Thu, 22 Aug 2002 02:27:42 +0000 (02:27 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 22 Aug 2002 02:27:42 +0000 (02:27 +0000)
servers/slapd/saslauthz.c
servers/slapd/schema_check.c

index 4366ed9d13c214d91fec0edffc659f9fccfeb8ac..f9f53d85ec9147e8579e9ebbb1df61852b2c75a8 100644 (file)
@@ -98,7 +98,7 @@ static int slap_parseURI( struct berval *uri,
                bv.bv_val = uri->bv_val + sizeof("dn:")-1;
                bv.bv_val += strspn( bv.bv_val, " " );
 
-is_dn:         bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
+is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
 
                rc = dnNormalize2( NULL, &bv, searchbase );
                if( rc == LDAP_SUCCESS ) {
index a92d44214bff8dd56a5fa6b4c2d44187330bc1b1..7d74b8e8448a72b612255b7207e3455d60444af2 100644 (file)
@@ -260,10 +260,9 @@ entry_schema_check(
                                                if ( xc->soc_kind == LDAP_SCHEMA_AUXILIARY &&
                                                        is_object_subclass( oc, xc ) )
                                                {
-                                                       break;;
+                                                       xc = NULL;
+                                                       break;
                                                }
-
-                                               xc = NULL;
                                        }
                                }