summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/groupman.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-15 09:37:42 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-15 09:40:28 +0100
commitf49d5e3288bc1b45d22fff0e68b11add2c4691ab (patch)
treed2eb6ff1b0d347a10b74867af28edf9b913c6004 /source4/torture/libnet/groupman.c
parenteb8c8a0ecaa9bfd29f090db21fccdad7751767ae (diff)
downloadsamba-f49d5e3288bc1b45d22fff0e68b11add2c4691ab.tar.gz
s4:tortore/libnet: fix crash bugs because of incorrect function prototypes
metze
Diffstat (limited to 'source4/torture/libnet/groupman.c')
-rw-r--r--source4/torture/libnet/groupman.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/libnet/groupman.c b/source4/torture/libnet/groupman.c
index 51b1c65b30a..213e88ef138 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;
}