]> git.sur5r.net Git - openldap/commitdiff
ITS#5057 fix AVA_Sort
authorHoward Chu <hyc@openldap.org>
Mon, 23 Jul 2007 04:22:39 +0000 (04:22 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 23 Jul 2007 04:22:39 +0000 (04:22 +0000)
servers/slapd/dn.c

index cf92a72fc1c7494f063f7f4cd1982be50c1c179c..8bd440dd7e86572a01f18f458004174b2625c557 100644 (file)
@@ -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;
        }
 }