From a2a28f7b954e7d2579548d71baa1db53ecea977d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 9 Apr 2005 11:28:06 +0000 Subject: [PATCH] ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length --- servers/slapd/back-bdb/tools.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index c82ba73178..a543f427c1 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -239,7 +239,10 @@ static int bdb_tool_next_id( EntryInfo *ei = NULL, eidummy; int rc; - if (ndn.bv_len == 0) return 0; + if (ndn.bv_len == 0) { + e->e_id = 0; + return 0; + } rc = bdb_cache_find_ndn( op, tid, &ndn, &ei ); if ( ei ) bdb_cache_entryinfo_unlock( ei ); -- 2.39.5