From efa14463ec0c56ca26a00ecf16d517bc76691141 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 7 Dec 2001 06:48:12 +0000 Subject: [PATCH] Missed a spot where root DN_SUBTREE index was still getting written. --- servers/slapd/back-bdb/dn2id.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 4812dd7ad3..1021446c93 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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 ); -- 2.39.5