mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05: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
1 changed files with 4 additions and 1 deletions
|
|
@ -239,7 +239,10 @@ static int bdb_tool_next_id(
|
||||||
EntryInfo *ei = NULL, eidummy;
|
EntryInfo *ei = NULL, eidummy;
|
||||||
int rc;
|
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 );
|
rc = bdb_cache_find_ndn( op, tid, &ndn, &ei );
|
||||||
if ( ei ) bdb_cache_entryinfo_unlock( ei );
|
if ( ei ) bdb_cache_entryinfo_unlock( ei );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue