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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Feb 2010 09:33:44 +0000 (10:33 +0100)
commitb07a14dc37d2899f662e1cf87064f99c0bd10b25
treefba7159e8b11299c5ed18b763d248686521b693f
parent70128dded977498ef5a693214053192f13c93c6b
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