mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix ITS#2905, properly detect duplicate entries
This commit is contained in:
parent
fbb72268fb
commit
778516cc8c
@ -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 New Issue
Block a user