From: Howard Chu Date: Mon, 13 Jul 2009 15:15:27 +0000 (+0000) Subject: Fix result when no VLV match X-Git-Tag: ACLCHECK_0~422 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eab5b9570a5205c7dee8e4de876c95c1fe8e3e95;p=openldap Fix result when no VLV match --- diff --git a/servers/slapd/overlays/sssvlv.c b/servers/slapd/overlays/sssvlv.c index 7f16ac7cf3..707f6820ea 100644 --- a/servers/slapd/overlays/sssvlv.c +++ b/servers/slapd/overlays/sssvlv.c @@ -427,7 +427,10 @@ range_err: for (i=1; isc_nkeys; i++) { BER_BVZERO( &sn->sn_vals[i] ); } - cur_node = tavl_find2( so->so_tree, sn, node_cmp ); + cur_node = tavl_find3( so->so_tree, sn, node_cmp, &j ); + /* didn't find >= match */ + if ( j > 0 ) + cur_node = NULL; op->o_tmpfree( sn, op->o_tmpmemctx ); if ( !cur_node ) {