summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/userinfo.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/userinfo.c
parenteb8c8a0ecaa9bfd29f090db21fccdad7751767ae (diff)
downloadsamba-f49d5e3288bc1b45d22fff0e68b11add2c4691ab.tar.gz
samba-f49d5e3288bc1b45d22fff0e68b11add2c4691ab.tar.bz2
samba-f49d5e3288bc1b45d22fff0e68b11add2c4691ab.zip
s4:tortore/libnet: fix crash bugs because of incorrect function prototypes
metze
Diffstat (limited to 'source4/torture/libnet/userinfo.c')
-rw-r--r--source4/torture/libnet/userinfo.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/torture/libnet/userinfo.c b/source4/torture/libnet/userinfo.c
index 11e57f852d..e273299160 100644
--- a/source4/torture/libnet/userinfo.c
+++ b/source4/torture/libnet/userinfo.c
@@ -136,6 +136,7 @@ bool torture_userinfo(struct torture_context *torture)
struct lsa_String name;
struct dom_sid2 sid;
uint32_t rid;
+ struct dcerpc_binding_handle *b;
mem_ctx = talloc_init("test_userinfo");
@@ -146,18 +147,19 @@ bool torture_userinfo(struct torture_context *torture)
if (!NT_STATUS_IS_OK(status)) {
return false;
}
+ b = p->binding_handle;
name.string = lp_workgroup(torture->lp_ctx);
/*
* Testing synchronous version
*/
- if (!test_opendomain(torture, p, mem_ctx, &h, &name, &sid)) {
+ if (!test_opendomain(torture, b, mem_ctx, &h, &name, &sid)) {
ret = false;
goto done;
}
- if (!test_user_create(torture, p, mem_ctx, &h, TEST_USERNAME, &rid)) {
+ if (!test_user_create(torture, b, mem_ctx, &h, TEST_USERNAME, &rid)) {
ret = false;
goto done;
}
@@ -167,7 +169,7 @@ bool torture_userinfo(struct torture_context *torture)
goto done;
}
- if (!test_user_cleanup(torture, p, mem_ctx, &h, TEST_USERNAME)) {
+ if (!test_user_cleanup(torture, b, mem_ctx, &h, TEST_USERNAME)) {
ret = false;
goto done;
}
@@ -175,12 +177,12 @@ bool torture_userinfo(struct torture_context *torture)
/*
* Testing asynchronous version and monitor messages
*/
- if (!test_opendomain(torture, p, mem_ctx, &h, &name, &sid)) {
+ if (!test_opendomain(torture, b, mem_ctx, &h, &name, &sid)) {
ret = false;
goto done;
}
- if (!test_user_create(torture, p, mem_ctx, &h, TEST_USERNAME, &rid)) {
+ if (!test_user_create(torture, b, mem_ctx, &h, TEST_USERNAME, &rid)) {
ret = false;
goto done;
}
@@ -190,7 +192,7 @@ bool torture_userinfo(struct torture_context *torture)
goto done;
}
- if (!test_user_cleanup(torture, p, mem_ctx, &h, TEST_USERNAME)) {
+ if (!test_user_cleanup(torture, b, mem_ctx, &h, TEST_USERNAME)) {
ret = false;
goto done;
}