Fix bug #7122 - Reading a large browselist fails (server returns invalid values in...
authorJeremy Allison <jra@samba.org>
Tue, 9 Feb 2010 23:23:38 +0000 (15:23 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Feb 2010 15:25:10 +0000 (16:25 +0100)
commit07e9144aab08e26a61016c76eb7afb1f9dbec7e4
tree39af180aa35b7b37ad26ff8c78036ab8b1374bb3
parent56c764a2d168a8cd3627e7d551e5eb802af48756
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.
(similar to commit b07a14dc37d2899f662e1cf87064f99c0bd10b25)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit de658f95ea12d4c532f309634b9aedb09c5e4d1d)
source/smbd/ipc.c
source/smbd/lanman.c