From 86005f581e3854b22bd429366dcce463caf7dab9 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 4 Sep 2008 13:56:31 +0000 Subject: [PATCH] A new entry's index should not be larger than the number of its siblings (ITS#5684) --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index a27299e4e8..fe8347478e 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3881,7 +3881,7 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e, if ( isconfig && index == -1 ) { index = 0; } - if ( !isfrontend && index == -1 ) { + if (( !isfrontend && index == -1 ) || ( index > nsibs ) ){ index = nsibs; } -- 2.39.5