r26685: Fix bug 5137 by Mark Ridley. The RPC-ATSVC test is not tested, so was
authorAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jan 2008 11:41:16 +0000 (05:41 -0600)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 Jan 2008 05:48:02 +0000 (23:48 -0600)
broken by 'ref' changes long ago.

We need a working script to aim against windows.

Andrew Bartlett
(This used to be commit d6b863453dcda85e02e53c44d68272bf2ef95d19)

source4/torture/rpc/atsvc.c

index b0d1d1519d3f9cd43a575def6500fea1f0f5128f..25ace8ac4905e73f046cf4c63337c2500d2f4129 100644 (file)
@@ -27,9 +27,14 @@ static bool test_JobGetInfo(struct dcerpc_pipe *p, struct torture_context *tctx,
 {
        NTSTATUS status;
        struct atsvc_JobGetInfo r;
+       struct atsvc_JobInfo *info = talloc(tctx, struct atsvc_JobInfo);
+       if (!info) {
+               return false;
+       }
 
        r.in.servername = dcerpc_server_name(p);
        r.in.job_id = job_id;
+       r.out.job_info = &info;
 
        status = dcerpc_atsvc_JobGetInfo(p, tctx, &r);