Fix calculation of useable_space for trans2 and nttrans replies
commit4782c3ad8d661697646fcb093cc0d2708500c16e
authorVolker Lendecke <vl@sernet.de>
Mon, 8 Sep 2008 20:53:50 +0000 (8 22:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Sep 2008 10:14:15 +0000 (9 12:14 +0200)
tree3a9cb4a6ddae0d26a2c183cf161432d6075a18a0
parentef6697435efba2afe15498caeb5daae7aea10604
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.
(cherry picked from commit 2ae870aead5e0ea7e7f9f6f9730f989ae34755b9)
source/smbd/nttrans.c
source/smbd/trans2.c