mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
Really fix ITS#2905
This commit is contained in:
parent
778516cc8c
commit
a8dbfd322a
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue