summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/ranged_results.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/ranged_results.c b/source4/dsdb/samdb/ldb_modules/ranged_results.c
index 3b82de8744..60d7503e5d 100644
--- a/source4/dsdb/samdb/ldb_modules/ranged_results.c
+++ b/source4/dsdb/samdb/ldb_modules/ranged_results.c
@@ -95,7 +95,7 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
for (i = 0; ac->req->op.search.attrs[i]; i++) {
char *p, *new_attr;
const char *end_str;
- unsigned int start, end, orig_num_values;
+ unsigned int start, end;
struct ldb_message_element *el;
struct ldb_val *orig_values;
@@ -146,7 +146,6 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
el->values = NULL;
} else {
orig_values = el->values;
- orig_num_values = el->num_values;
if ((start + end < start) || (start + end < end)) {
ldb_asprintf_errstring(ldb,