diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 9ca8ca5826..023d99d091 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -923,13 +923,13 @@ int caseExactIA5SubstringsIndexer( int j,max; struct berval *value; + value = values[i]; + if( value->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue; max = SLAP_INDEX_SUBSTR_MAXLEN < value->bv_len ? SLAP_INDEX_SUBSTR_MAXLEN : value->bv_len; - value = values[i]; - for( j=SLAP_INDEX_SUBSTR_MINLEN; j<=max; j++ ) { char pre;