]> git.sur5r.net Git - openldap/commitdiff
Initialize a_flags of new Attribute in str2entry2().
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 30 Jul 2005 23:54:00 +0000 (23:54 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 30 Jul 2005 23:54:00 +0000 (23:54 +0000)
servers/slapd/entry.c

index a5b34ea99ab4d41384c3722c21c6ac68063eeb7e..9441de24e6317c7b18a2425ceab42870e89bac20 100644 (file)
@@ -230,6 +230,7 @@ str2entry2( char *s, int checkvals )
                        int j, k;
                        atail->a_next = (Attribute *) ch_malloc( sizeof(Attribute) );
                        atail = atail->a_next;
+                       atail->a_flags = 0;
                        atail->a_desc = ad_prev;
                        atail->a_vals = ch_malloc( (attr_cnt + 1) * sizeof(struct berval));
                        if( ad_prev->ad_type->sat_equality &&