mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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 ) {
|
} else if ( !hole ) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
|
if ( e->e_id == NOID ) {
|
||||||
|
return DB_KEYEXIST;
|
||||||
|
}
|
||||||
|
|
||||||
for ( i=0; i<nholes; i++) {
|
for ( i=0; i<nholes; i++) {
|
||||||
if ( holes[i].id == e->e_id ) {
|
if ( holes[i].id == e->e_id ) {
|
||||||
int j;
|
int j;
|
||||||
|
Loading…
Reference in New Issue
Block a user