diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-08 08:20:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:55 -0500 |
commit | e8b61d7cc830b4f9f23618757fca1d8b8f095873 (patch) | |
tree | dbc64883248d310b7ada96fe5de79fdba211d515 /source4/smb_server/smb2/fileinfo.c | |
parent | bb158b74da65edc5ed8ed9fdbcb77ffae373df2e (diff) | |
download | samba-e8b61d7cc830b4f9f23618757fca1d8b8f095873.tar.gz samba-e8b61d7cc830b4f9f23618757fca1d8b8f095873.tar.xz samba-e8b61d7cc830b4f9f23618757fca1d8b8f095873.zip |
r16872: when we know the data length we can preallocate the buffer
and avoid a realloc
metze
(This used to be commit 51d59d23a1179689bda7cd1ab8cc43de31ad4f24)
Diffstat (limited to 'source4/smb_server/smb2/fileinfo.c')
-rw-r--r-- | source4/smb_server/smb2/fileinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb2/fileinfo.c b/source4/smb_server/smb2/fileinfo.c index d6290da33e6..f5cc6d73ee3 100644 --- a/source4/smb_server/smb2/fileinfo.c +++ b/source4/smb_server/smb2/fileinfo.c @@ -54,7 +54,7 @@ static void smb2srv_getinfo_send(struct ntvfs_request *ntvfs) SMB2SRV_CHECK(op->send_fn(op)); } - SMB2SRV_CHECK(smb2srv_setup_reply(req, 0x08, True, 0)); + SMB2SRV_CHECK(smb2srv_setup_reply(req, 0x08, True, op->info->out.blob.length)); /* TODO: this is maybe a o16s32_blob */ SMB2SRV_CHECK(smb2_push_o16s16_blob(&req->out, 0x02, op->info->out.blob)); |