clear rc if value must be added (ITS#5819)

This commit is contained in:
Pierangelo Masarati 2008-11-19 16:02:22 +00:00
parent e552df6014
commit 6f20049610

View file

@ -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;
}
}
}