mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-30 18:39:28 -05:00
Fix ITS#2905, properly detect duplicate entries
This commit is contained in:
parent
fbb72268fb
commit
778516cc8c
1 changed files with 4 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ static int bdb_tool_next_id(
|
|||
} else if ( !hole ) {
|
||||
unsigned i;
|
||||
|
||||
if ( e->e_id == NOID ) {
|
||||
return DB_KEYEXIST;
|
||||
}
|
||||
|
||||
for ( i=0; i<nholes; i++) {
|
||||
if ( holes[i].id == e->e_id ) {
|
||||
int j;
|
||||
|
|
|
|||
Loading…
Reference in a new issue