diff options
-rw-r--r-- | source3/libsmb/clilist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 608d740f83..2b56582700 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -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; } |