From 778516cc8c62a7fcd909d833b7be312319ce19d5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Jan 2004 03:54:01 +0000 Subject: [PATCH] Fix ITS#2905, properly detect duplicate entries --- servers/slapd/back-bdb/tools.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index af86a6f62b..93231fefbc 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -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; ie_id ) { int j; -- 2.39.5