ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length

This commit is contained in:
Howard Chu 2005-04-09 11:28:06 +00:00
parent 7aac82d31c
commit a2a28f7b95

View File

@ -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 );