diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/tools/ldbsearch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c index f96c14f5ec..b4120c0dce 100644 --- a/source4/lib/ldb/tools/ldbsearch.c +++ b/source4/lib/ldb/tools/ldbsearch.c @@ -97,7 +97,7 @@ static int do_search(struct ldb_context *ldb, printf("# returned %d records\n", result->count); if (options->sorted) { - ldb_qsort(result->msgs, ret, sizeof(struct ldb_message *), + ldb_qsort(result->msgs, result->count, sizeof(struct ldb_message *), ldb, (ldb_qsort_cmp_fn_t)do_compare_msg); } |