s3:smb2_server: allocate smbd_smb2_request on talloc_tos()
commita399931c3949c06a978fc392060e9df8bea8be61
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Oct 2013 07:15:12 +0000 (16 09:15 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 11:57:30 +0000 (10 12:57 +0100)
tree5edfb9bb1c191d89bffaa4ab56c9b58243aad3a1
parent79c54dc79842542b2c9f371d485e4642e639fb25
s3:smb2_server: allocate smbd_smb2_request on talloc_tos()

This matches the behavior for smb1 requests
and avoids an additional malloc() per request.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 9d33a3f3e814e2924a423496ccc133c6c73fcd12)
source3/smbd/smb2_server.c