Skip to content
Snippets Groups Projects
Commit a2a28f7b authored by Howard Chu's avatar Howard Chu
Browse files

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

parent 7aac82d3
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment