From: Howard Chu Date: Mon, 23 Jul 2007 04:22:39 +0000 (+0000) Subject: ITS#5057 fix AVA_Sort X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=69be5fd67532e9375e8e496b073af73bfa3ba21b;p=openldap ITS#5057 fix AVA_Sort --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index cf92a72fc1..8bd440dd7e 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -249,7 +249,7 @@ AVA_Sort( LDAPRDN rdn, int iAVA ) a = strcmp( ava_in->la_attr.bv_val, ava->la_attr.bv_val ); if ( a > 0 ) { - break; + continue; } while ( a == 0 ) { @@ -292,8 +292,6 @@ AVA_Sort( LDAPRDN rdn, int iAVA ) rdn[ j ] = rdn[ j - 1 ]; } rdn[ i ] = ava_in; - - return; } }