SQ: torture:smb2: replay8 needs multi-channel
authorMichael Adam <obnox@samba.org>
Mon, 29 Feb 2016 11:46:20 +0000 (12:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 13:37:55 +0000 (14:37 +0100)
source4/torture/smb2/replay.c

index 224babe85cb5e621cca76791ab436333d6c0a0e4..ca688a41024ab64740b84354392a20dcc71b3eda 100644 (file)
@@ -2704,10 +2704,18 @@ static bool test_replay9(struct torture_context *tctx, struct smb2_tree *_tree)
        struct smb2_tree_connect tcon;
 #endif
        uint16_t channel_seq;
-
+       uint32_t server_capabilities;
 
        if (smbXcli_conn_protocol(transport1->conn) < PROTOCOL_SMB3_00) {
-               torture_skip(tctx, "SMB 3.X Dialect family required for Replay tests\n");
+               torture_skip(tctx, "SMB 3.X Dialect family required for "
+                                  "Replay tests\n");
+       }
+
+       server_capabilities = smb2cli_conn_server_capabilities(
+                                       _tree->session->transport->conn);
+       if (!(server_capabilities & SMB2_CAP_MULTI_CHANNEL)) {
+               torture_skip(tctx,
+                            "Server does not support multi-channel.");
        }
 
        ZERO_STRUCT(break_info);