From cb05b0e93551a01fad977b8d03a25eba390eb143 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 21 Aug 2007 14:50:32 +0000 Subject: [PATCH] fix control value presence --- servers/slapd/controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5