svn commit: samba r16872 - in
branches/SAMBA_4_0/source/smb_server/smb2: .
metze at samba.org
metze at samba.org
Sat Jul 8 08:20:16 GMT 2006
Author: metze
Date: 2006-07-08 08:20:10 +0000 (Sat, 08 Jul 2006)
New Revision: 16872
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16872
Log:
when we know the data length we can preallocate the buffer
and avoid a realloc
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c 2006-07-08 08:18:55 UTC (rev 16871)
+++ branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c 2006-07-08 08:20:10 UTC (rev 16872)
@@ -54,7 +54,7 @@
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));
More information about the samba-cvs
mailing list