s4:torture:smb2: in the durable-v2-reopen1 test, use a minimal request
authorMichael Adam <obnox@samba.org>
Fri, 7 Sep 2012 13:33:54 +0000 (15:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Sep 2012 21:39:29 +0000 (23:39 +0200)
don't copy the old request, but only set the necessary fields

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/durable_v2_open.c

index 7e0e0f4616ab72db3398d668fd8c803b3b506e9f..85620965d1e8edc26c12b96ca12bc9dff6294c24 100644 (file)
@@ -413,8 +413,7 @@ bool test_durable_v2_open_reopen1(struct torture_context *tctx,
 
        /* try a durable reconnect while the file is still open */
        ZERO_STRUCT(io2);
-       io2.in = io1.in;
-       io2.in.durable_open_v2 = false;
+       io2.in.fname = "";
        io2.in.durable_handle_v2 = h;
        io2.in.create_guid = io1.in.create_guid;
        status = smb2_create(tree, mem_ctx, &io2);