Don't segfault in RPC-ATSVC.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Aug 2008 23:46:51 +0000 (09:46 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Aug 2008 23:46:51 +0000 (09:46 +1000)
source/torture/rpc/atsvc.c

index 25ace8ac4905e73f046cf4c63337c2500d2f4129..23d76ae502eb2a479e32e46cb6a9ef3dc534dcf7 100644 (file)
@@ -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);