1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Fix bug we discovered in W2K client signing on secondary trans2 packets.

Use W2K parameters. tpot please re-test smbclient with your problem
directory.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent b8f6b83646
commit 677d3a3c4c

View File

@ -145,7 +145,7 @@ static int interpret_long_filename(struct cli_state *cli,
int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
void (*fn)(file_info *, const char *, void *), void *state)
{
int max_matches = 512;
int max_matches = 1366; /* Match W2k - was 512. */
int info_level;
char *p, *p2;
pstring mask;
@ -207,7 +207,8 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
&setup, 1, 0, /* setup, length, max */
param, param_len, 10, /* param, length, max */
NULL, 0,
cli->max_xmit /* data, length, max */
MIN(16384,cli->max_xmit) /* data, length, max. W2K server signing
has a bug unless this matches what W2K uses. */
)) {
break;
}