From: Howard Chu Date: Tue, 1 Jan 2002 09:40:57 +0000 (+0000) Subject: Fix dnValidate X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~383 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fa6ac6676b01a2177f3c726028e70627155dcb9;p=openldap Fix dnValidate --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 65c9281da5..cb7c33d41c 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -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;