summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-26 09:55:29 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-26 11:56:02 +0200
commita67daa3aa6ce0e9ba8cf8db34d889fe5c8f65f3f (patch)
tree502c93ca3b0f9ad9c11bbf1301ce61c1a4561473
parentf6592c427dbcc347ec7752c8182029a3ba937fbd (diff)
downloadsamba-a67daa3aa6ce0e9ba8cf8db34d889fe5c8f65f3f.tar.gz
samba-a67daa3aa6ce0e9ba8cf8db34d889fe5c8f65f3f.tar.bz2
samba-a67daa3aa6ce0e9ba8cf8db34d889fe5c8f65f3f.zip
s3:smb2_negprot: return the current system time in the SMB2 NEGPROT response
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 26 11:56:02 CEST 2012 on sn-devel-104
-rw-r--r--source3/smbd/smb2_negprot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c
index c084114ac5..66d64cf338 100644
--- a/source3/smbd/smb2_negprot.c
+++ b/source3/smbd/smb2_negprot.c
@@ -108,6 +108,7 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
uint32_t max_trans = lp_smb2_max_trans();
uint32_t max_read = lp_smb2_max_read();
uint32_t max_write = lp_smb2_max_write();
+ NTTIME now = timeval_to_nttime(&req->request_time);
status = smbd_smb2_request_verify_sizes(req, 0x24);
if (!NT_STATUS_IS_OK(status)) {
@@ -323,7 +324,7 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
SIVAL(outbody.data, 0x1C, max_trans); /* max transact size */
SIVAL(outbody.data, 0x20, max_read); /* max read size */
SIVAL(outbody.data, 0x24, max_write); /* max write size */
- SBVAL(outbody.data, 0x28, 0); /* system time */
+ SBVAL(outbody.data, 0x28, now); /* system time */
SBVAL(outbody.data, 0x30, 0); /* server start time */
SSVAL(outbody.data, 0x38,
security_offset); /* security buffer offset */