Fix bug #7122 - Reading a large browselist fails (server returns invalid values in...
authorJeremy Allison <jra@samba.org>
Tue, 9 Feb 2010 23:14:38 +0000 (15:14 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 9 Feb 2010 23:14:38 +0000 (15:14 -0800)
commit8ddc977c1421a47bedba8d5494f7ae67692b772a
treedaa47c43fbbbe65cb8d2d3a77b61e4652ca498d3
parenta056eb85ff8cabc05970c789abba890d914e7ecb
Fix bug #7122 - Reading a large browselist fails (server returns invalid values in subsequent SMBtrans replies)

There are two problems:

1). The server is off-by-one in the end of buffer space test.
2). The server returns 0 in the totaldata (smb_vwv1) and totalparams (smb_vwv0)
fields in the second and subsequent SMBtrans replies.

This patch fixes both.

Jeremy.
source3/smbd/ipc.c
source3/smbd/lanman.c