summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-24 13:18:33 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 13:18:33 +0100
commit8cd63a854e465bba030436038e4644f694f2801a (patch)
treeacc4263586bb8c8ac00f9fded3e806ee5a4cac0c /source4/torture
parent9fd24eb9c5fdd0e4a801af83cf9ec7f6de6c4504 (diff)
downloadsamba-8cd63a854e465bba030436038e4644f694f2801a.tar.gz
samba-8cd63a854e465bba030436038e4644f694f2801a.tar.bz2
samba-8cd63a854e465bba030436038e4644f694f2801a.zip
s4-smbtorture: fix some invalid parameters in RPC-SAMSYNC test.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samsync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index bf3dba54ee..0177ca8c6b 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -494,7 +494,7 @@ static bool samsync_handle_user(struct torture_context *tctx, TALLOC_CTX *mem_ct
ret = false;
}
- if (!test_samr_handle_Close(samsync_state->b_samr, mem_ctx, &user_handle)) {
+ if (!test_samr_handle_Close(samsync_state->b_samr, tctx, &user_handle)) {
torture_comment(tctx, "samr_handle_Close failed - %s\n",
nt_errstr(nt_status));
ret = false;
@@ -763,7 +763,7 @@ static bool samsync_handle_alias(struct torture_context *tctx,
TEST_SEC_DESC_EQUAL(alias->sdbuf, samr, &alias_handle);
nt_status = dcerpc_samr_QueryAliasInfo_r(samsync_state->b_samr, mem_ctx, &q);
- if (!test_samr_handle_Close(samsync_state->b_samr, mem_ctx, &alias_handle)) {
+ if (!test_samr_handle_Close(samsync_state->b_samr, tctx, &alias_handle)) {
return false;
}
@@ -815,7 +815,7 @@ static bool samsync_handle_group(struct torture_context *tctx,
TEST_SEC_DESC_EQUAL(group->sdbuf, samr, &group_handle);
nt_status = dcerpc_samr_QueryGroupInfo_r(samsync_state->b_samr, mem_ctx, &q);
- if (!test_samr_handle_Close(samsync_state->b_samr, mem_ctx, &group_handle)) {
+ if (!test_samr_handle_Close(samsync_state->b_samr, tctx, &group_handle)) {
return false;
}
@@ -1586,7 +1586,7 @@ bool torture_rpc_samsync(struct torture_context *torture)
timestring(mem_ctx, time(NULL)));
status = dcerpc_samr_SetDomainInfo_r(samsync_state->b_samr, mem_ctx, &s);
- if (!test_samr_handle_Close(samsync_state->b_samr, mem_ctx, domain_policy)) {
+ if (!test_samr_handle_Close(samsync_state->b_samr, torture, domain_policy)) {
ret = false;
goto failed;
}