From 6fa6ac6676b01a2177f3c726028e70627155dcb9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 1 Jan 2002 09:40:57 +0000 Subject: [PATCH] Fix dnValidate --- servers/slapd/dn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5