From a67daa3aa6ce0e9ba8cf8db34d889fe5c8f65f3f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 26 Jul 2012 09:55:29 +0200 Subject: s3:smb2_negprot: return the current system time in the SMB2 NEGPROT response metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Jul 26 11:56:02 CEST 2012 on sn-devel-104 --- source3/smbd/smb2_negprot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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 */ -- cgit