mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
controls can always have criticality set to FALSE (ITS#5785)
This commit is contained in:
parent
d75a567708
commit
21ddf6193d
1 changed files with 3 additions and 5 deletions
|
|
@ -960,12 +960,10 @@ static int parseDontUseCopy (
|
|||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if ( !ctrl->ldctl_iscritical ) {
|
||||
rs->sr_text = "dontUseCopy criticality of FALSE not allowed";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
op->o_dontUseCopy = ctrl->ldctl_iscritical
|
||||
? SLAP_CONTROL_CRITICAL
|
||||
: SLAP_CONTROL_NONCRITICAL;
|
||||
|
||||
op->o_dontUseCopy = SLAP_CONTROL_CRITICAL;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue