mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix control value presence
This commit is contained in:
parent
620d77eaf4
commit
cb05b0e935
1 changed files with 2 additions and 2 deletions
|
|
@ -1012,7 +1012,7 @@ static int parseNoOp (
|
|||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if ( ctrl->ldctl_value.bv_len ) {
|
||||
if ( !BER_BVISNULL( &ctrl->ldctl_value ) ) {
|
||||
rs->sr_text = "noop control value not empty";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
|
@ -1515,7 +1515,7 @@ static int parseTreeDelete (
|
|||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if ( BER_BVISNULL( &ctrl->ldctl_value )) {
|
||||
if ( !BER_BVISNULL( &ctrl->ldctl_value )) {
|
||||
rs->sr_text = "treeDelete control value not absent";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue