summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samr.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-27 22:57:51 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:27 +0100
commit5ce30d0f4db94e61ae469155b863b124587495a4 (patch)
tree8944cd59a771362a71295d83d19550c76c3eb89f /source4/torture/rpc/samr.c
parent93c6129c991dfb94496c0f7a9177a89fb275866d (diff)
downloadsamba-5ce30d0f4db94e61ae469155b863b124587495a4.tar.gz
samba-5ce30d0f4db94e61ae469155b863b124587495a4.tar.bz2
samba-5ce30d0f4db94e61ae469155b863b124587495a4.zip
s4-samr: merge samr_QuerySecurity from s3 idl. (fixme: python)
Guenther
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r--source4/torture/rpc/samr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index b28877602c..9ea92037d0 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -138,18 +138,20 @@ static bool test_QuerySecurity(struct dcerpc_pipe *p,
NTSTATUS status;
struct samr_QuerySecurity r;
struct samr_SetSecurity s;
+ struct sec_desc_buf *sdbuf = NULL;
r.in.handle = handle;
r.in.sec_info = 7;
+ r.out.sdbuf = &sdbuf;
status = dcerpc_samr_QuerySecurity(p, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "QuerySecurity");
- torture_assert(tctx, r.out.sdbuf != NULL, "sdbuf is NULL");
+ torture_assert(tctx, sdbuf != NULL, "sdbuf is NULL");
s.in.handle = handle;
s.in.sec_info = 7;
- s.in.sdbuf = r.out.sdbuf;
+ s.in.sdbuf = sdbuf;
if (torture_setting_bool(tctx, "samba4", false)) {
torture_skip(tctx, "skipping SetSecurity test against Samba4\n");