diff options
author | Ralph Boehme <slow@samba.org> | 2018-03-20 15:27:44 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-01 11:32:46 +0100 |
commit | b7134e36f8d0d2bf9941aad52a0e995c8436117b (patch) | |
tree | 78b3cffd48533895cf36e34d5f032285fad37b78 | |
parent | 8932a4a161f2647057e1fe815562354e0a12ccbd (diff) | |
download | samba-b7134e36f8d0d2bf9941aad52a0e995c8436117b.tar.gz |
s3: libsmb: use smb2cli_conn_max_trans_size() in cli_smb2_list()
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)
-rw-r--r-- | source3/libsmb/cli_smb2_fnum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 561efe371a4..de0ddb4e0dd 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -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); |