summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-13 01:29:52 +0100
committerGünther Deschner <gd@samba.org>2008-02-13 01:29:52 +0100
commit9673162236c5ab5e1d52b6bb4b3af6902e9adcf4 (patch)
tree3a45e574c4a452ac3fe40edbd6c7ee5b6267df20
parent2600cb6b9b29230112924e306433cac2e5ba0ecc (diff)
downloadsamba-9673162236c5ab5e1d52b6bb4b3af6902e9adcf4.tar.gz
samba-9673162236c5ab5e1d52b6bb4b3af6902e9adcf4.tar.bz2
samba-9673162236c5ab5e1d52b6bb4b3af6902e9adcf4.zip
Fix the build of winbindd, sorry.
Guenther (This used to be commit c62c89c8f0d1ff8e384b88b3b192aa96f0b2183e)
-rw-r--r--source3/winbindd/winbindd_rpc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 326ff61122..473d2a52a4 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -1009,8 +1009,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) {
uint32 start_idx;
- char **tmp_names;
- DOM_SID *tmp_sids;
int i;
struct lsa_DomainList dom_list;
@@ -1036,9 +1034,9 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain,
(*alt_names == NULL))
return NT_STATUS_NO_MEMORY;
- for (i=0; i<num; i++) {
- (*names)[start_idx+i] = dom_list.domains[i].name.string;
- (*dom_sids)[start_idx+i] = dom_list.domains[i].sid;
+ for (i=0; i<dom_list.count; i++) {
+ (*names)[start_idx+i] = CONST_DISCARD(char *, dom_list.domains[i].name.string);
+ (*dom_sids)[start_idx+i] = *dom_list.domains[i].sid;
(*alt_names)[start_idx+i] = talloc_strdup(mem_ctx, "");
}
}