Fix calculation of useable_space for trans2 and nttrans replies
authorVolker Lendecke <vl@sernet.de>
Mon, 8 Sep 2008 20:53:50 +0000 (22:53 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Sep 2008 21:32:22 +0000 (23:32 +0200)
commitd39e9e05ed485f93bb2709ec2494dd2c42ea1300
tree1e60d7d9a0edfe0c47a9f93bad093b8c98a16b7d
parentd4b41079cb6bfffa75e3d7b188ab4331f7aa32b8
Fix calculation of useable_space for trans2 and nttrans replies

When alignment was in place, we pretended to send more data/params according to
the param_offset/param_length and data_offset/data_length parameters than would
actually fit into the SMB according to the NBSS length field.
(This used to be commit ef3c132b8455c6fe4d0bb9f0be881040a806a4ed)
source3/smbd/nttrans.c
source3/smbd/trans2.c