diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-11-22 12:34:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:04 -0500 |
commit | 08c4c748a4c9707ac4300f9ef848ec808a469994 (patch) | |
tree | 20d408f245fc3946c4c35336053f6c3c4c4ec8fe /source4 | |
parent | 201393fd8bd2d044ae082b2b57a183279af1a87e (diff) | |
download | samba-08c4c748a4c9707ac4300f9ef848ec808a469994.tar.gz samba-08c4c748a4c9707ac4300f9ef848ec808a469994.tar.bz2 samba-08c4c748a4c9707ac4300f9ef848ec808a469994.zip |
r3909: Fix cross-reference test for trusted domains.
Andrew Bartlett
(This used to be commit f2c86e619440c715499a28da5bfe22272458f0af)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/samsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index 20d63a351a..4a875d6335 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -782,7 +782,7 @@ static BOOL samsync_handle_trusted_domain(TALLOC_CTX *mem_ctx, struct samsync_st struct lsa_OpenTrustedDomain t; struct policy_handle trustdom_handle; struct lsa_QueryInfoTrustedDomain q; - union lsa_TrustedDomainInfo info[4]; + union lsa_TrustedDomainInfo *info[4]; int levels [] = {1, 3}; int i; @@ -803,17 +803,17 @@ static BOOL samsync_handle_trusted_domain(TALLOC_CTX *mem_ctx, struct samsync_st for (i=0; i< ARRAY_SIZE(levels); i++) { q.in.trustdom_handle = &trustdom_handle; q.in.level = levels[i]; - q.out.info = &info[levels[i]]; status = dcerpc_lsa_QueryInfoTrustedDomain(samsync_state->p_lsa, mem_ctx, &q); if (!NT_STATUS_IS_OK(status)) { printf("QueryInfoTrustedDomain level %d failed - %s\n", levels[i], nt_errstr(status)); return False; } + info[levels[i]] = q.out.info; } - TEST_STRING_EQUAL(info[1].info1.domain_name, trusted_domain->domain_name); - TEST_INT_EQUAL(info[3].info3.flags, trusted_domain->flags); + TEST_STRING_EQUAL(info[1]->info1.domain_name, trusted_domain->domain_name); + TEST_INT_EQUAL(info[3]->info3.flags, trusted_domain->flags); TEST_SEC_DESC_EQUAL(trusted_domain->sdbuf, lsa, &trustdom_handle); DLIST_ADD(samsync_state->trusted_domains, new); |