]> git.sur5r.net Git - openldap/commitdiff
Bug hunting -- crash when doing substring match.
authorMark Valence <mrv@openldap.org>
Wed, 14 Jun 2000 06:07:06 +0000 (06:07 +0000)
committerMark Valence <mrv@openldap.org>
Wed, 14 Jun 2000 06:07:06 +0000 (06:07 +0000)
servers/slapd/schema_init.c

index 96e3fdbdf8bf0fa26c17a213085f8b04481f92eb..e604cf4a61057f45149bc050e1d71a63c5c66ecd 100644 (file)
@@ -686,7 +686,7 @@ caseIgnoreIA5SubstringsMatch(
        }
        if( sub->sa_any ) {
                for(i=0; sub->sa_any[i]; i++) {
-                       inlen += sub->sa_final->bv_len;
+                       inlen += sub->sa_any[i]->bv_len;
                }
        }
        if( sub->sa_final ) {