ITS#8932 check rdnNormalize success

This commit is contained in:
Howard Chu 2018-11-09 21:16:10 +00:00
parent d40a832db0
commit a4fddc7b11

View file

@ -4903,7 +4903,11 @@ config_renumber_one( Operation *op, SlapReply *rs, CfEntryInfo *parent,
/* Do the equivalent of ModRDN */
/* Replace DN / NDN */
newrdn.bv_len = ptr1 - newrdn.bv_val;
rdnNormalize( 0, NULL, NULL, &newrdn, &nnewrdn, NULL );
rc = rdnNormalize( 0, NULL, NULL, &newrdn, &nnewrdn, NULL );
if ( rc ) {
free( newrdn.bv_val );
return LDAP_NAMING_VIOLATION;
}
rc = config_rename_one( op, rs, e, parent, a, &newrdn, &nnewrdn, use_ldif );
free( nnewrdn.bv_val );