]> git.sur5r.net Git - openldap/commitdiff
Fix entry ordering in config_build_entry
authorHoward Chu <hyc@openldap.org>
Wed, 7 Feb 2007 16:06:41 +0000 (16:06 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Feb 2007 16:06:41 +0000 (16:06 +0000)
servers/slapd/bconfig.c

index 00f581e1644a4e36c1ffa0cf6d1b498af4dff445..59ffcdd0e3a979f203b637d59024b216368ebe60 100644 (file)
@@ -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 );