From: Howard Chu Date: Wed, 7 Feb 2007 16:06:41 +0000 (+0000) Subject: Fix entry ordering in config_build_entry X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73eda09be35768028436fca7e4bdf56278e22d00;p=openldap Fix entry ordering in config_build_entry --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 00f581e164..59ffcdd0e3 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -5323,9 +5323,9 @@ config_build_entry( Operation *op, SlapReply *rs, CfEntryInfo *parent, ce->ce_parent = parent; if ( parent ) { pdn = parent->ce_entry->e_nname; - if ( parent->ce_kids && parent->ce_kids->ce_type < ce->ce_type ) + if ( parent->ce_kids ) for ( ceprev = parent->ce_kids; ceprev->ce_sibs && - ceprev->ce_type < ce->ce_type; + ceprev->ce_type <= ce->ce_type; ceprev = ceprev->ce_sibs ); } else { BER_BVZERO( &pdn );