diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-21 11:47:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:33 -0500 |
commit | 101d0333a333cee6d3fc33cb4655976145fb87e8 (patch) | |
tree | f29d0de9073613894ec37d7fed1a99abf82110fa /source4/libcli/raw/rawsearch.c | |
parent | fa4271fb39d593fd4516e8ee32234299ffd31967 (diff) | |
download | samba-101d0333a333cee6d3fc33cb4655976145fb87e8.tar.gz samba-101d0333a333cee6d3fc33cb4655976145fb87e8.tar.bz2 samba-101d0333a333cee6d3fc33cb4655976145fb87e8.zip |
r4316: - now that the trans2 code properly supports multi-part requests, we can set
a maximum sized max_data in libcli trans2 code
- fixed string termination in the EA_LIST trans2 findfirst level
(This used to be commit a2a5f147f4faac8a48ff8f1b3e5f1334c92575bb)
Diffstat (limited to 'source4/libcli/raw/rawsearch.c')
-rw-r--r-- | source4/libcli/raw/rawsearch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/raw/rawsearch.c b/source4/libcli/raw/rawsearch.c index 3c271253e5..90715ca8e2 100644 --- a/source4/libcli/raw/rawsearch.c +++ b/source4/libcli/raw/rawsearch.c @@ -208,7 +208,7 @@ static NTSTATUS smb_raw_search_first_blob(struct smbcli_tree *tree, tp.in.setup_count = 1; tp.in.data = data_blob(NULL, 0); tp.in.max_param = 10; - tp.in.max_data = smb_raw_max_trans_data(tree, 10); + tp.in.max_data = 0xFFFF; tp.in.setup = &setup; if (info_level == RAW_SEARCH_EA_LIST) { @@ -269,7 +269,7 @@ static NTSTATUS smb_raw_search_next_blob(struct smbcli_tree *tree, tp.in.setup_count = 1; tp.in.data = data_blob(NULL, 0); tp.in.max_param = 10; - tp.in.max_data = smb_raw_max_trans_data(tree, 10); + tp.in.max_data = 0xFFFF; tp.in.setup = &setup; if (info_level == RAW_SEARCH_EA_LIST) { @@ -416,7 +416,7 @@ static int parse_trans2_search(struct smbcli_tree *tree, len = smbcli_blob_pull_string(tree->session, mem_ctx, blob, &data->ea_list.name, 22+ea_size, 23+ea_size, - STR_LEN8BIT | STR_TERMINATE | STR_NOALIGN); + STR_LEN8BIT | STR_NOALIGN); return len + ea_size + 23 + 1; case RAW_SEARCH_DIRECTORY_INFO: |