Return proper result codes for usage errors

This commit is contained in:
Kurt Zeilenga 2002-02-21 19:29:32 +00:00
parent 75d97a43eb
commit cea1746182

View File

@ -334,12 +334,12 @@ at_add(
if ( at->at_collective ) {
if( at->at_usage ) {
/* collective attributes cannot be operational */
return SLAP_SCHERR_NOT_SUPPORTED;
return SLAP_SCHERR_ATTR_BAD_USAGE;
}
if( at->at_single_value ) {
/* collective attributes cannot be single-valued */
return SLAP_SCHERR_NOT_SUPPORTED;
return SLAP_SCHERR_ATTR_BAD_USAGE;
}
}