s3:libcmb: Remove max_protocol from cli_cm_connect()
authorAndreas Schneider <asn@samba.org>
Thu, 27 Aug 2020 14:45:12 +0000 (16:45 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 9 Oct 2020 19:16:46 +0000 (19:16 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clidfs.c

index fb1a0c72e6d777e8968e52c51f1bd36131544b7a..023dd4d275759e9a5246b75c345f21688b53d836 100644 (file)
@@ -293,7 +293,6 @@ static NTSTATUS cli_cm_connect(TALLOC_CTX *ctx,
                               const char *server,
                               const char *share,
                               struct cli_credentials *creds,
-                              int max_protocol,
                               const struct sockaddr_storage *dest_ss,
                               int port,
                               int name_type,
@@ -304,7 +303,7 @@ static NTSTATUS cli_cm_connect(TALLOC_CTX *ctx,
 
        status = do_connect(ctx, server, share,
                                creds,
-                               max_protocol,
+                               lp_client_max_protocol(),
                                dest_ss, port, name_type, &cli);
 
        if (!NT_STATUS_IS_OK(status)) {
@@ -416,7 +415,6 @@ NTSTATUS cli_cm_open(TALLOC_CTX *ctx,
                                server,
                                share,
                                creds,
-                               lp_client_max_protocol(),
                                dest_ss,
                                port,
                                name_type,
@@ -1020,7 +1018,6 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
                                dfs_refs[count].server,
                                dfs_refs[count].share,
                                creds,
-                               smbXcli_conn_protocol(rootcli->conn),
                                NULL, /* dest_ss */
                                0, /* port */
                                0x20,