From: Howard Chu Date: Sat, 9 Apr 2005 11:28:06 +0000 (+0000) Subject: ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length X-Git-Tag: OPENLDAP_AC_BP~944 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2a28f7b954e7d2579548d71baa1db53ecea977d;p=openldap ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length --- 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 );