mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
clear rc if value must be added (ITS#5819)
This commit is contained in:
parent
e552df6014
commit
6f20049610
1 changed files with 5 additions and 1 deletions
|
|
@ -885,6 +885,7 @@ entry_naming_check(
|
|||
ava->la_attr.bv_val );
|
||||
if ( add_naming ) {
|
||||
add = 1;
|
||||
rc = LDAP_SUCCESS;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
@ -892,7 +893,10 @@ entry_naming_check(
|
|||
"naming attribute '%s' is inappropriate",
|
||||
ava->la_attr.bv_val );
|
||||
}
|
||||
rc = LDAP_NAMING_VIOLATION;
|
||||
|
||||
if ( !add ) {
|
||||
rc = LDAP_NAMING_VIOLATION;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue