From 8fd4375803c4cdebd7e68053c8b62e78b887eec8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 17 Mar 2010 00:05:02 +0100 Subject: s4-smbtorture: use binding handle for simple SetValue winreg test. Guenther --- source4/torture/rpc/winreg.c | 5 ++--- 1 file 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"); -- cgit