r24136: get_lanman2_dir_entry() does not need access to inbuf/outbuf
authorVolker Lendecke <vlendec@samba.org>
Thu, 2 Aug 2007 18:50:17 +0000 (18:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:10 +0000 (12:29 -0500)
commit9b1614f8cb415c15032e6a34f2da5df026f92e6e
tree12be3e300a5a075a64abfca1e468680e3dccb678
parent248f15ff143474db2493cef89ba446892342a361
r24136: get_lanman2_dir_entry() does not need access to inbuf/outbuf

It did not use inbuf anyway. Outbuf was used for alignment and to the
flags2. The alignment works ok if we align relative to base_data because this
and outbuf are both malloc'ed, and we put send_trans2_replies aligns out_data
properly relative to the start of the outbuf.

I don't know if the explicit align_string() calls in get_lanman2_dir_entry are
really necessary. I think that srvstr_push also does the same.

Please also note that this changes dst_len in srvstr_push from -1 to the real
length remaining.

Volker
source/smbd/trans2.c