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

r25705: Ensure we return the out value to the caller.

Andrew Bartlett
(This used to be commit 3434262ad7)
This commit is contained in:
Andrew Bartlett 2007-10-19 06:57:19 +02:00 committed by Stefan Metzmacher
parent 35dc4d9999
commit c2e5cf6e31

View File

@ -218,12 +218,14 @@ static int objectclass_sort(struct ldb_module *module,
} while (parent_class);
if (!unsorted) {
*sorted_out = sorted;
return LDB_SUCCESS;
}
if (!schema) {
/* If we don't have schema yet, then just merge the lists again */
DLIST_CONCATENATE(sorted, unsorted, struct class_list *);
*sorted_out = sorted;
return LDB_SUCCESS;
}