]> git.sur5r.net Git - openldap/commitdiff
Fix dnValidate
authorHoward Chu <hyc@openldap.org>
Tue, 1 Jan 2002 09:40:57 +0000 (09:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 1 Jan 2002 09:40:57 +0000 (09:40 +0000)
servers/slapd/dn.c

index 65c9281da5ba4ccfe87c5c26db6c2419f15443d9..cb7c33d41c22f0d29d5243c6eb5989dc40dd66c2 100644 (file)
@@ -76,8 +76,7 @@ LDAPDN_validate( LDAPDN *dn )
                        /* 
                         * Replace attr oid/name with the canonical name
                         */
-                       free( ava->la_attr.bv_val );
-                       ber_dupbv( &ava->la_attr, &ad->ad_cname );
+                       ava->la_attr = ad->ad_cname;
 
                        validate = ad->ad_type->sat_syntax->ssyn_validate;