r24327: First round of fixes to chain_reply
commitf923bba90866af14b32c0d0ab58acc00a5939fbb
authorVolker Lendecke <vlendec@samba.org>
Sat, 11 Aug 2007 14:37:39 +0000 (11 14:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:29 +0000 (10 12:29 -0500)
treea41b932bd52d66ef95223be83748072c8ebdf917
parent7af4c1f547accc973f8b3ed88958bdeaf941754a
r24327: First round of fixes to chain_reply

The argument to smb_setlen does not contain the nbt header of 4 bytes

The chained function might allocate outbuf itself (as now happens with
reply_read_and_X). This would erroneously overwrite the caller's outbuf.
Give it an outbuf pointer of it's own
source/smbd/process.c