summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-08-15 09:46:51 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-08-15 09:46:51 +1000
commit427b3baba3fe5489c96fd79ef1b1ee1adef7b834 (patch)
treee773f782870f1bf031287adbb6de8dcb13b7b8dd /source4/torture
parent8c0fbbf6e927db9fdbffc28fcde0bea97c5e60e6 (diff)
downloadsamba-427b3baba3fe5489c96fd79ef1b1ee1adef7b834.tar.gz
samba-427b3baba3fe5489c96fd79ef1b1ee1adef7b834.tar.bz2
samba-427b3baba3fe5489c96fd79ef1b1ee1adef7b834.zip
Don't segfault in RPC-ATSVC.
(This used to be commit e711f7d26a632ec93c1e2a3db52c37e1c0de4214)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/atsvc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/atsvc.c b/source4/torture/rpc/atsvc.c
index 25ace8ac49..23d76ae502 100644
--- a/source4/torture/rpc/atsvc.c
+++ b/source4/torture/rpc/atsvc.c
@@ -65,7 +65,8 @@ static bool test_JobEnum(struct torture_context *tctx, struct dcerpc_pipe *p)
NTSTATUS status;
struct atsvc_JobEnum r;
struct atsvc_enum_ctr ctr;
- uint32_t resume_handle = 0, i;
+ uint32_t resume_handle = 0, i, total_entries = 0;
+
bool ret = true;
r.in.servername = dcerpc_server_name(p);
@@ -74,6 +75,7 @@ static bool test_JobEnum(struct torture_context *tctx, struct dcerpc_pipe *p)
r.in.ctr = r.out.ctr = &ctr;
r.in.preferred_max_len = 0xffffffff;
r.in.resume_handle = r.out.resume_handle = &resume_handle;
+ r.out.total_entries = &total_entries;
status = dcerpc_atsvc_JobEnum(p, tctx, &r);