From: Howard Chu Date: Mon, 12 Jan 2004 03:54:01 +0000 (+0000) Subject: Fix ITS#2905, properly detect duplicate entries X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=778516cc8c62a7fcd909d833b7be312319ce19d5;p=openldap Fix ITS#2905, properly detect duplicate entries --- 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;