r24327: First round of fixes to chain_reply
commit26f6826dfc996fe4d170dc7bc5ef2a728c9ddcaf
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)
tree4418121cc0ccf6a64d759aad0fc5a6bc8a5d09a9
parentbf47a89c98aaf05d083e67bc02dc8efd3827c9cc
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
(This used to be commit f923bba90866af14b32c0d0ab58acc00a5939fbb)
source3/smbd/process.c