s3:torture/test_smb2: test handle based calls during reauth in SMB2-MULTI-CHANNEL
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Feb 2012 12:27:38 +0000 (13:27 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Feb 2012 04:49:11 +0000 (05:49 +0100)
metze

source3/torture/test_smb2.c

index 96fc9cfe8b77ac7aa08530fa66346c9819ebdf25..f2f9ea0aa305963a30f2c2d1e32e10842ce2d8fd 100644 (file)
@@ -1224,6 +1224,24 @@ bool run_smb2_multi_channel(int dummy)
                return false;
        }
 
+       status = smb2cli_flush(cli1, fid_persistent, fid_volatile);
+       if (!NT_STATUS_IS_OK(status)) {
+               printf("smb2cli_flush returned %s\n", nt_errstr(status));
+               return false;
+       }
+
+       status = smb2cli_flush(cli2, fid_persistent, fid_volatile);
+       if (!NT_STATUS_IS_OK(status)) {
+               printf("smb2cli_flush returned %s\n", nt_errstr(status));
+               return false;
+       }
+
+       status = smb2cli_flush(cli3, fid_persistent, fid_volatile);
+       if (!NT_STATUS_IS_OK(status)) {
+               printf("smb2cli_flush returned %s\n", nt_errstr(status));
+               return false;
+       }
+
        status = gensec_update(auth_generic_state->gensec_security, talloc_tos(), ev, out_blob, &in_blob);
        if (!NT_STATUS_IS_OK(status)) {
                printf("auth_generic_update returned %s\n", nt_errstr(status));