Commit a4fddc7b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8932 check rdnNormalize success

parent d40a832d
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment