From: Ralf Haferkamp Date: Thu, 4 Sep 2008 13:56:31 +0000 (+0000) Subject: A new entry's index should not be larger than the number of its siblings (ITS#5684) X-Git-Tag: ACLCHECK_0~1382 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86005f581e3854b22bd429366dcce463caf7dab9;p=openldap A new entry's index should not be larger than the number of its siblings (ITS#5684) --- 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; }