From 3a15afa057a49bceed50d87ce09e015ca166f743 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 22 Aug 2002 02:27:42 +0000 Subject: [PATCH] Fix abstract schema check --- servers/slapd/saslauthz.c | 2 +- servers/slapd/schema_check.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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; } } -- 2.39.5