Fix bug #7122 - Reading a large browselist fails (server returns invalid values in...
commit9206eb87627cf8088e5e188a9e93e271f07c9c07
authorJeremy Allison <jra@samba.org>
Tue, 9 Feb 2010 23:14:38 +0000 (9 15:14 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Feb 2010 13:46:53 +0000 (15 14:46 +0100)
tree8664f1c479b3decc339217c6717f47311fa1bfe2
parentf030e761f1d4a68429694ebf56678d43dc0d2ff6
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.
(cherry picked from commit 8ddc977c1421a47bedba8d5494f7ae67692b772a)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 8ac6085a2c7382e544888e632ff62c30f7e7a884)
source3/smbd/ipc.c
source3/smbd/lanman.c