From: Pierangelo Masarati Date: Tue, 21 Aug 2007 14:50:32 +0000 (+0000) Subject: fix control value presence X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb05b0e93551a01fad977b8d03a25eba390eb143;p=openldap fix control value presence --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index ea2ecba0ec..7e98665d3f 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -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; }