]> git.sur5r.net Git - openldap/commitdiff
Missed a spot where root DN_SUBTREE index was still getting written.
authorHoward Chu <hyc@openldap.org>
Fri, 7 Dec 2001 06:48:12 +0000 (06:48 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 7 Dec 2001 06:48:12 +0000 (06:48 +0000)
servers/slapd/back-bdb/dn2id.c

index 4812dd7ad34b69c3f7d840d5db57a780c88f4433..1021446c93e272047fda6cf50f8c35ce0e12bc62 100644 (file)
@@ -73,6 +73,8 @@ bdb_dn2id_add(
                        int i;
                        ((char *)key.data)[0] = DN_SUBTREE_PREFIX;
                        for( i=0; subtree[i] != NULL; i++ ) {
+                               if (be_issuffix(be, subtree[i]))
+                                       continue;
                                key.size = strlen( subtree[i] ) + 2;
                                AC_MEMCPY( &((char *)key.data)[1],
                                        subtree[i], key.size - 1 );