Skip to content
Snippets Groups Projects
Commit 778516cc authored by Howard Chu's avatar Howard Chu
Browse files

Fix ITS#2905, properly detect duplicate entries

parent fbb72268
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment