diff options
author | Simo Sorce <idra@samba.org> | 2006-02-20 22:21:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:57 -0500 |
commit | 77445df4b4dcda3e0051d40c2eee29a084264658 (patch) | |
tree | 8dbadd06f87a48b918300eb0699cb2db5f21fec1 | |
parent | 595702c9faff4baf148901847a45b5a197ce92d5 (diff) | |
download | samba-77445df4b4dcda3e0051d40c2eee29a084264658.tar.gz samba-77445df4b4dcda3e0051d40c2eee29a084264658.tar.bz2 samba-77445df4b4dcda3e0051d40c2eee29a084264658.zip |
r13580: fix broken client side sort
(This used to be commit cbbc0d7cc4f589235d209011bdb0a0401b492d9e)
-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); } |