summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-04-17 19:57:15 +0200
committerStefan Metzmacher <metze@samba.org>2009-04-20 18:14:59 +0200
commite6b796b936993e485356eaabd4370858c4f802fd (patch)
tree9f695d6372860240caa476af15522889c5d44d17 /source4
parent900d569bede23972ddaf9603f3a63bf7e3d007e1 (diff)
downloadsamba-e6b796b936993e485356eaabd4370858c4f802fd.tar.gz
samba-e6b796b936993e485356eaabd4370858c4f802fd.tar.bz2
samba-e6b796b936993e485356eaabd4370858c4f802fd.zip
s4:torture/rpc: use dcerpc_ndr_request() for the object_uuid test
As we want sync calls... metze
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/object_uuid.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/source4/torture/rpc/object_uuid.c b/source4/torture/rpc/object_uuid.c
index 69905169af..a70266697e 100644
--- a/source4/torture/rpc/object_uuid.c
+++ b/source4/torture/rpc/object_uuid.c
@@ -53,11 +53,10 @@ static bool test_random_uuid(struct torture_context *torture)
uuid = GUID_random();
r1.in.level = DS_ROLE_BASIC_INFORMATION;
- req = dcerpc_ndr_request_send(p1, &uuid,
- &ndr_table_dssetup,
- NDR_DSSETUP_DSROLEGETPRIMARYDOMAININFORMATION,
- torture, &r1);
- status = dcerpc_ndr_request_recv(req);
+ status = dcerpc_ndr_request(p1, &uuid,
+ &ndr_table_dssetup,
+ NDR_DSSETUP_DSROLEGETPRIMARYDOMAININFORMATION,
+ torture, &r1);
torture_assert_ntstatus_ok(torture, status, "DsRoleGetPrimaryDomainInformation failed");
torture_assert_werr_ok(torture, r1.out.result, "DsRoleGetPrimaryDomainInformation failed");
@@ -69,11 +68,10 @@ static bool test_random_uuid(struct torture_context *torture)
r2.out.account_name = &account_name_p;
r2.out.authority_name = &authority_name_p;
- req = dcerpc_ndr_request_send(p2, &uuid,
- &ndr_table_lsarpc,
- NDR_LSA_GETUSERNAME,
- torture, &r2);
- status = dcerpc_ndr_request_recv(req);
+ status = dcerpc_ndr_request(p2, &uuid,
+ &ndr_table_lsarpc,
+ NDR_LSA_GETUSERNAME,
+ torture, &r2);
torture_assert_ntstatus_ok(torture, status, "lsaClose failed");
torture_assert_ntstatus_ok(torture, r2.out.result, "lsaClose failed");