From 9c49c4694885a0b173ac982877fc64385e4855b7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 30 Jul 2003 19:00:52 +0000 Subject: 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 used to be commit 677d3a3c4ca0b67148e5e56fa876773a067679bd) --- source3/libsmb/clilist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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; } -- cgit