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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Sep 2008 10:17:22 +0000 (12:17 +0200)
commit410d54abb9991930233ca15733d932472dc35d8b
treec6a14de5172d08bc806063d43ff7a2d9a9802395
parent51bab3661f401f61d6de9ae34aa6180adf80ecb3
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 a18cd579160ea3b70e43895a2a83f7734014f091)
source/smbd/nttrans.c
source/smbd/trans2.c