summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-08 08:20:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:55 -0500
commite8b61d7cc830b4f9f23618757fca1d8b8f095873 (patch)
treedbc64883248d310b7ada96fe5de79fdba211d515 /source4/smb_server
parentbb158b74da65edc5ed8ed9fdbcb77ffae373df2e (diff)
downloadsamba-e8b61d7cc830b4f9f23618757fca1d8b8f095873.tar.gz
samba-e8b61d7cc830b4f9f23618757fca1d8b8f095873.tar.bz2
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')
-rw-r--r--source4/smb_server/smb2/fileinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb2/fileinfo.c b/source4/smb_server/smb2/fileinfo.c
index d6290da33e..f5cc6d73ee 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));