]> git.sur5r.net Git - openldap/commitdiff
A new entry's index should not be larger than the number of its siblings (ITS#5684)
authorRalf Haferkamp <ralf@openldap.org>
Thu, 4 Sep 2008 13:56:31 +0000 (13:56 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Thu, 4 Sep 2008 13:56:31 +0000 (13:56 +0000)
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;
                }