r26685: Fix bug 5137 by Mark Ridley. The RPC-ATSVC test is not tested, so was
[samba.git] / 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);