s3:smb2_server: only allocate the required buffer in the smb2 recvfile() code path
authorStefan Metzmacher <metze@samba.org>
Fri, 15 Nov 2013 08:12:40 +0000 (09:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Mar 2014 23:04:40 +0000 (00:04 +0100)
commit95f7cff117fe676359dcfbfbc3580fe34eebb6aa
treeced5ceba1146c8a8589b5c1354e701dfbd7604ef
parentfb9240791c8396beb6b62fb3104b524ae520a334
s3:smb2_server: only allocate the required buffer in the smb2 recvfile() code path

This way the buffer will likely be allocated within the existing talloc_pool,
which avoids one malloc() per request.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_server.c