mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
ITS#8932 check rdnNormalize success
This commit is contained in:
parent
d40a832db0
commit
a4fddc7b11
1 changed files with 5 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue