smb_server/smb: fix crash bug with fragmented trans calls
commit88a26f6e7fb8737f33e100a5e83138b0fb63efd4
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Jul 2008 10:56:26 +0000 (7 12:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 Jul 2008 11:43:12 +0000 (7 13:43 +0200)
tree7fd55108d2173cdfdc1cae6afba0b8bf846b5196
parentb6327116dd7f0e634e24e5a86e325b93567ecbde
smb_server/smb: fix crash bug with fragmented trans calls

We need to use smbsrv_setup_secondary_request(req) to send the
trans ack, because smbsrv_send_reply(req) destroys 'req'
and the partial trans list had dead elements in the list.

Also make sure the partial list element is removed by a talloc
destructor.

metze
(This used to be commit 221f4d6e534a40b7def6e51dc6b4f9e8057d18b7)
source4/smb_server/smb/trans2.c