]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: use smb2cli_conn_max_trans_size() in cli_smb2_list()
authorRalph Boehme <slow@samba.org>
Tue, 20 Mar 2018 14:27:44 +0000 (15:27 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 1 Feb 2019 10:32:46 +0000 (11:32 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13736

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 580ff206431969dc2924d520053b956b7169ca07)

source3/libsmb/cli_smb2_fnum.c

index 561efe371a454a2d78f044b702c918f0e632c4f4..de0ddb4e0dd3f94afc692480b091568ef1bf7fdf 100644 (file)
@@ -910,6 +910,7 @@ NTSTATUS cli_smb2_list(struct cli_state *cli,
        TALLOC_CTX *frame = talloc_stackframe();
        TALLOC_CTX *subframe = NULL;
        bool mask_has_wild;
+       uint32_t max_trans = smb2cli_conn_max_trans_size(cli->conn);
 
        if (smbXcli_conn_has_async_calls(cli->conn)) {
                /*
@@ -973,7 +974,7 @@ NTSTATUS cli_smb2_list(struct cli_state *cli,
                                        ph->fid_persistent,
                                        ph->fid_volatile,
                                        mask,
-                                       0xffff,
+                                       max_trans,
                                        subframe,
                                        &dir_data,
                                        &dir_data_length);