mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Really fix ITS#2905
This commit is contained in:
parent
778516cc8c
commit
a8dbfd322a
@ -265,9 +265,8 @@ static int bdb_tool_next_id(
|
||||
} else if ( !hole ) {
|
||||
unsigned i;
|
||||
|
||||
if ( e->e_id == NOID ) {
|
||||
return DB_KEYEXIST;
|
||||
}
|
||||
e->e_id = ei->bei_id;
|
||||
rc = DB_KEYEXIST;
|
||||
|
||||
for ( i=0; i<nholes; i++) {
|
||||
if ( holes[i].id == e->e_id ) {
|
||||
@ -276,6 +275,7 @@ static int bdb_tool_next_id(
|
||||
for (j=i;j<nholes;j++) holes[j] = holes[j+1];
|
||||
holes[j].id = 0;
|
||||
nholes--;
|
||||
rc = 0;
|
||||
break;
|
||||
} else if ( holes[i].id > e->e_id ) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user