TODO: skip cli_echo SMB2
authorStefan Metzmacher <metze@samba.org>
Tue, 20 Sep 2011 07:53:38 +0000 (09:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Jan 2018 06:45:47 +0000 (07:45 +0100)
source3/libsmb/clientgen.c

index 44afee1d4a099cbbfaba61416788b9d2b7510cf9..466b77178359b18ac510e65298519bccfe086cce 100644 (file)
@@ -555,6 +555,10 @@ NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data)
        struct tevent_req *req;
        NTSTATUS status = NT_STATUS_OK;
 
+       if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
+               return NT_STATUS_OK;
+       }
+
        if (smbXcli_conn_has_async_calls(cli->conn)) {
                /*
                 * Can't use sync call while an async call is in flight