From f49d5e3288bc1b45d22fff0e68b11add2c4691ab Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 15 Mar 2010 09:37:42 +0100 Subject: s4:tortore/libnet: fix crash bugs because of incorrect function prototypes metze --- source4/torture/libnet/groupman.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/torture/libnet/groupman.c') diff --git a/source4/torture/libnet/groupman.c b/source4/torture/libnet/groupman.c index 51b1c65b30..213e88ef13 100644 --- a/source4/torture/libnet/groupman.c +++ b/source4/torture/libnet/groupman.c @@ -60,6 +60,7 @@ bool torture_groupadd(struct torture_context *torture) const char *name = TEST_GROUPNAME; TALLOC_CTX *mem_ctx; bool ret = true; + struct dcerpc_binding_handle *b; mem_ctx = talloc_init("test_groupadd"); @@ -68,9 +69,10 @@ bool torture_groupadd(struct torture_context *torture) &ndr_table_samr); torture_assert_ntstatus_ok(torture, status, "RPC connection"); + b = p->binding_handle; domain_name.string = lp_workgroup(torture->lp_ctx); - if (!test_opendomain(torture, p, mem_ctx, &h, &domain_name, &sid)) { + if (!test_opendomain(torture, b, mem_ctx, &h, &domain_name, &sid)) { ret = false; goto done; } @@ -80,7 +82,7 @@ bool torture_groupadd(struct torture_context *torture) goto done; } - if (!test_group_cleanup(p, mem_ctx, &h, name)) { + if (!test_group_cleanup(b, mem_ctx, &h, name)) { ret = false; goto done; } -- cgit