do not assume the matching rule synta has a validate handler (ITS#4380)

This commit is contained in:
Pierangelo Masarati 2006-02-01 21:53:58 +00:00
parent 8ce19e5c75
commit 0e2b26986e

View File

@ -153,8 +153,12 @@ int asserted_value_validate_normalize(
rc = (mr->smr_syntax->ssyn_pretty)( mr->smr_syntax, in, &pval, ctx );
in = &pval;
} else {
} else if ( mr->smr_syntax->ssyn_validate ) {
rc = (mr->smr_syntax->ssyn_validate)( mr->smr_syntax, in );
} else {
*text = "inappropriate matching request";
return LDAP_INAPPROPRIATE_MATCHING;
}
if( rc != LDAP_SUCCESS ) {