]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/bconfig.c
A new entry's index should not be larger than the number of its siblings (ITS#5684)
[openldap] / servers / slapd / bconfig.c
index a27299e4e82a92a5335cf515693b0084f7bf50ae..fe8347478e36cdcc80de73ca342437c3f6adb5e9 100644 (file)
@@ -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;
                }