]> git.sur5r.net Git - openldap/commitdiff
ITS#6845 set sorted flag on newly created sorted attrs
authorHoward Chu <hyc@openldap.org>
Mon, 28 Feb 2011 09:58:25 +0000 (09:58 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 28 Feb 2011 09:58:25 +0000 (09:58 +0000)
servers/slapd/value.c

index c33ae1afc5bb18ba4a5dcd3d84aa3c1a287edc8f..fa353e6b63a8fb9847bb63a03f405f39db867aa8 100644 (file)
@@ -712,6 +712,7 @@ ordered_value_add(
                for ( ap=&e->e_attrs; *ap; ap = &(*ap)->a_next ) ;
                a = attr_alloc( ad );
                *ap = a;
+               a->a_flags |= SLAP_ATTR_SORTED_VALS;
        }
        anum = a->a_numvals;