mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#3583
This commit is contained in:
parent
660c5de77b
commit
2d98546d21
@ -1191,8 +1191,8 @@ static int parseSubentries (
|
|||||||
|
|
||||||
/* FIXME: should use BER library */
|
/* FIXME: should use BER library */
|
||||||
if( ( ctrl->ldctl_value.bv_len != 3 )
|
if( ( ctrl->ldctl_value.bv_len != 3 )
|
||||||
&& ( ctrl->ldctl_value.bv_val[0] != 0x01 )
|
|| ( ctrl->ldctl_value.bv_val[0] != 0x01 )
|
||||||
&& ( ctrl->ldctl_value.bv_val[1] != 0x01 ))
|
|| ( ctrl->ldctl_value.bv_val[1] != 0x01 ))
|
||||||
{
|
{
|
||||||
rs->sr_text = "subentries control value encoding is bogus";
|
rs->sr_text = "subentries control value encoding is bogus";
|
||||||
return LDAP_PROTOCOL_ERROR;
|
return LDAP_PROTOCOL_ERROR;
|
||||||
@ -1202,8 +1202,9 @@ static int parseSubentries (
|
|||||||
? SLAP_CONTROL_CRITICAL
|
? SLAP_CONTROL_CRITICAL
|
||||||
: SLAP_CONTROL_NONCRITICAL;
|
: SLAP_CONTROL_NONCRITICAL;
|
||||||
|
|
||||||
if ( (void *)(ctrl->ldctl_value.bv_val[2] != 0x00))
|
if ( (void *)(ctrl->ldctl_value.bv_val[2] != 0x00)) {
|
||||||
set_subentries_visibility( op );
|
set_subentries_visibility( op );
|
||||||
|
}
|
||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user