From: Kurt Zeilenga Date: Thu, 22 Aug 2002 02:27:42 +0000 (+0000) Subject: Fix abstract schema check X-Git-Tag: NO_SLAP_OP_BLOCKS~1205 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a15afa057a49bceed50d87ce09e015ca166f743;p=openldap Fix abstract schema check --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 4366ed9d13..f9f53d85ec 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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 ) { diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index a92d44214b..7d74b8e844 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -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; } }