mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
do not assume the matching rule synta has a validate handler (ITS#4380)
This commit is contained in:
parent
8ce19e5c75
commit
0e2b26986e
@ -153,8 +153,12 @@ int asserted_value_validate_normalize(
|
|||||||
rc = (mr->smr_syntax->ssyn_pretty)( mr->smr_syntax, in, &pval, ctx );
|
rc = (mr->smr_syntax->ssyn_pretty)( mr->smr_syntax, in, &pval, ctx );
|
||||||
in = &pval;
|
in = &pval;
|
||||||
|
|
||||||
} else {
|
} else if ( mr->smr_syntax->ssyn_validate ) {
|
||||||
rc = (mr->smr_syntax->ssyn_validate)( mr->smr_syntax, in );
|
rc = (mr->smr_syntax->ssyn_validate)( mr->smr_syntax, in );
|
||||||
|
|
||||||
|
} else {
|
||||||
|
*text = "inappropriate matching request";
|
||||||
|
return LDAP_INAPPROPRIATE_MATCHING;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( rc != LDAP_SUCCESS ) {
|
if( rc != LDAP_SUCCESS ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user