From 73eda09be35768028436fca7e4bdf56278e22d00 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 7 Feb 2007 16:06:41 +0000 Subject: [PATCH] Fix entry ordering in config_build_entry --- servers/slapd/bconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5