1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r14433: sort_result must be initialised when we call do_result

This commit is contained in:
Andrew Tridgell 2006-03-15 05:52:12 +00:00 committed by Gerald (Jerry) Carter
parent 2c33f577ad
commit a33f6a9832

View File

@ -244,6 +244,8 @@ static int server_sort_search(struct ldb_module *module, struct ldb_control *con
return ret;
}
sort_result = req->op.search.res;
/* SORT HERE */
if (do_sort) {
struct opaque *data;
@ -257,7 +259,6 @@ static int server_sort_search(struct ldb_module *module, struct ldb_control *con
data->ldb = module->ldb;
data->h = ldb_attrib_handler(data->ldb, data->attribute);
data->result = 0;
sort_result = req->op.search.res;
ldb_qsort(sort_result->msgs,
sort_result->count,