mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-11 13:50:39 +08:00
ITS#3616 allow adding entry with zero-length DN if the suffix is zero-length
This commit is contained in:
parent
7aac82d31c
commit
a2a28f7b95
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user