mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
A new entry's index should not be larger than the number of its siblings (ITS#5684)
This commit is contained in:
parent
1355e605d5
commit
86005f581e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue