summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-27 16:14:28 +0100
committerGünther Deschner <gd@samba.org>2008-10-28 23:40:52 +0100
commit2a329c496379d1b94fa9d83b4fc1fc1921636512 (patch)
tree5afef8aba42851ca3fcdf08f509b7cb692fa7e62 /source4/torture/rpc
parent2a7de4e3f802f1a180132f766ce2c5effd971dc2 (diff)
downloadsamba-2a329c496379d1b94fa9d83b4fc1fc1921636512.tar.gz
samba-2a329c496379d1b94fa9d83b4fc1fc1921636512.tar.bz2
samba-2a329c496379d1b94fa9d83b4fc1fc1921636512.zip
s4-netlogon: merge netr_DsRGetSiteName from s3 idl.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 7f0f60cd32..378f9a21d5 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -1230,17 +1230,19 @@ static bool test_netr_DsRGetSiteName(struct dcerpc_pipe *p, struct torture_conte
{
NTSTATUS status;
struct netr_DsRGetSiteName r;
+ const char *site = NULL;
if (torture_setting_bool(tctx, "samba4", false))
torture_skip(tctx, "skipping DsRGetSiteName test against Samba4");
r.in.computer_name = computer_name;
+ r.out.site = &site;
torture_comment(tctx, "Testing netr_DsRGetSiteName\n");
status = dcerpc_netr_DsRGetSiteName(p, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "DsRGetSiteName");
torture_assert_werr_ok(tctx, r.out.result, "DsRGetSiteName");
- torture_assert_str_equal(tctx, expected_site, r.out.site, "netr_DsRGetSiteName");
+ torture_assert_str_equal(tctx, expected_site, site, "netr_DsRGetSiteName");
r.in.computer_name = talloc_asprintf(tctx, "\\\\%s", computer_name);
torture_comment(tctx,