diff options
author | Günther Deschner <gd@samba.org> | 2008-10-28 01:27:12 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-28 23:40:53 +0100 |
commit | f82a11783286abf30c8a36cc46a5098b3284d65d (patch) | |
tree | fdce1f0631ca1e07cc8e5808cf2ea05faec9f2cb /source4/torture | |
parent | a674a3bbf3520cd8f93f35dcc8a4ec59c456e1ba (diff) | |
download | samba-f82a11783286abf30c8a36cc46a5098b3284d65d.tar.gz samba-f82a11783286abf30c8a36cc46a5098b3284d65d.tar.bz2 samba-f82a11783286abf30c8a36cc46a5098b3284d65d.zip |
s4-netlogon: merge netr_GetDcName from s3 idl.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 41abfbc243..5f8e2fc21b 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -869,15 +869,17 @@ static bool test_GetDcName(struct torture_context *tctx, { NTSTATUS status; struct netr_GetDcName r; + const char *dcname = NULL; r.in.logon_server = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p)); r.in.domainname = lp_workgroup(tctx->lp_ctx); + r.out.dcname = &dcname; status = dcerpc_netr_GetDcName(p, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "GetDcName"); torture_assert_werr_ok(tctx, r.out.result, "GetDcName"); - torture_comment(tctx, "\tDC is at '%s'\n", r.out.dcname); + torture_comment(tctx, "\tDC is at '%s'\n", dcname); return true; } |