From: Howard Chu Date: Fri, 10 Jun 2011 08:35:19 +0000 (-0700) Subject: ITS#6967 normalize schema RDN X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1b38bd12b680662b36396df1fa4a6e5333d684e;p=openldap ITS#6967 normalize schema RDN --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 46191f22fc..3be1165890 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -6625,11 +6625,12 @@ config_build_schema_inc( ConfigArgs *c, CfEntryInfo *ceparent, bv.bv_len ); c->value_dn.bv_len += bv.bv_len; c->value_dn.bv_val[c->value_dn.bv_len] ='\0'; - rdn = c->value_dn; + rdnNormalize( 0, NULL, NULL, &c->value_dn, &rdn, NULL ); c->ca_private = cf; e = config_build_entry( op, rs, ceparent, c, &rdn, &CFOC_SCHEMA, NULL ); + ch_free( rdn.bv_val ); if ( !e ) { return -1; } else if ( e && cf->c_kids ) {