From 77445df4b4dcda3e0051d40c2eee29a084264658 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 20 Feb 2006 22:21:21 +0000 Subject: r13580: fix broken client side sort (This used to be commit cbbc0d7cc4f589235d209011bdb0a0401b492d9e) --- source4/lib/ldb/tools/ldbsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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); } -- cgit