diff options
Diffstat (limited to 'ldap/servers')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/ldbm_search.c | 2 | ||||
-rw-r--r-- | ldap/servers/slapd/back-ldbm/vlv.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_search.c b/ldap/servers/slapd/back-ldbm/ldbm_search.c index 7d91d47a..8d57ae49 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_search.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_search.c @@ -637,7 +637,7 @@ ldbm_back_search( Slapi_PBlock *pb ) * this is not an internal operation. * We hope the plugins know what they are doing! */ - if (!operation_is_flag_set(operation, OP_FLAG_INTERNAL)) { + if (!operation_is_flag_set(operation, OP_FLAG_INTERNAL)) { PR_Lock(inst->inst_config_mutex); ri = inst->require_index; diff --git a/ldap/servers/slapd/back-ldbm/vlv.c b/ldap/servers/slapd/back-ldbm/vlv.c index f1e06167..f0ce9e6a 100644 --- a/ldap/servers/slapd/back-ldbm/vlv.c +++ b/ldap/servers/slapd/back-ldbm/vlv.c @@ -1185,7 +1185,8 @@ vlv_build_candidate_list( backend *be, struct vlvIndex* p, const struct vlv_requ vlv_request_control); if (si==length) { do_trim = 0; - *candidates = idl_alloc(0); + /* minimum idl_alloc size should be 1; 0 is considered ALLID */ + *candidates = idl_alloc(1); } break; default: @@ -1356,7 +1357,8 @@ vlv_trim_candidates(backend *be, const IDList *candidates, const sort_spec* sort if(si==candidates->b_nids) { do_trim= 0; - resultIdl= idl_alloc(0); + /* minimum idl_alloc size should be 1; 0 is considered ALLID */ + resultIdl= idl_alloc(1); } break; default: |