summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-17 00:05:02 +0100
committerGünther Deschner <gd@samba.org>2010-03-17 11:48:51 +0100
commit8fd4375803c4cdebd7e68053c8b62e78b887eec8 (patch)
tree8a449940c55714afa24af24a934309988f51604d /source4/torture/rpc
parent50cc29b3cb234f71f7fbbef47fe36bf9d85a313b (diff)
downloadsamba-8fd4375803c4cdebd7e68053c8b62e78b887eec8.tar.gz
samba-8fd4375803c4cdebd7e68053c8b62e78b887eec8.tar.bz2
samba-8fd4375803c4cdebd7e68053c8b62e78b887eec8.zip
s4-smbtorture: use binding handle for simple SetValue winreg test.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index a5a3812b48..9ea1ae8fc2 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1871,7 +1871,7 @@ static bool test_key(struct dcerpc_pipe *p, struct torture_context *tctx,
return true;
}
-static bool test_SetValue_simple(struct dcerpc_pipe *p,
+static bool test_SetValue_simple(struct dcerpc_binding_handle *b,
struct torture_context *tctx,
struct policy_handle *handle)
{
@@ -1886,7 +1886,6 @@ static bool test_SetValue_simple(struct dcerpc_pipe *p,
REG_MULTI_SZ
};
int t;
- struct dcerpc_binding_handle *b = p->binding_handle;
torture_comment(tctx, "Testing SetValue (standard formats)\n");
@@ -2172,7 +2171,7 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
"CreateKey failed (OpenKey after Create didn't work)\n");
if (created) {
- torture_assert(tctx, test_SetValue_simple(p, tctx, &newhandle),
+ torture_assert(tctx, test_SetValue_simple(b, tctx, &newhandle),
"simple SetValue test failed");
torture_assert(tctx, test_SetValue_extended(b, tctx, &newhandle),
"extended SetValue test failed");