summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-01 13:53:27 +0100
committerChristian Ambach <ambi@samba.org>2012-11-05 20:43:23 +0100
commit3d9361612d30725a3d14fa4d3a085256a91800db (patch)
tree7409ec0b94732258caf04218f7243b739924c59e /source3/smbd/reply.c
parent157de6c9878e804b963df3c7c834aa38d1fa7ac3 (diff)
downloadsamba-3d9361612d30725a3d14fa4d3a085256a91800db.tar.gz
samba-3d9361612d30725a3d14fa4d3a085256a91800db.tar.bz2
samba-3d9361612d30725a3d14fa4d3a085256a91800db.zip
s3:smbd: pass the current time to make_connection[_smb1]()
Otherwise smbstatus reports the wrong time for tree connects. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Nov 5 20:43:23 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 4423e8e190..8db9c623f7 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -666,6 +666,7 @@ void reply_tcon(struct smb_request *req)
const char *p;
TALLOC_CTX *ctx = talloc_tos();
struct smbd_server_connection *sconn = req->sconn;
+ NTTIME now = timeval_to_nttime(&req->request_time);
START_PROFILE(SMBtcon);
@@ -695,7 +696,7 @@ void reply_tcon(struct smb_request *req)
service = service_buf;
}
- conn = make_connection(sconn,service,dev,
+ conn = make_connection(sconn, now, service, dev,
req->vuid,&nt_status);
req->conn = conn;
@@ -911,7 +912,7 @@ void reply_tcon_and_X(struct smb_request *req)
session_key_updated = true;
}
- conn = make_connection(sconn, service, client_devicetype,
+ conn = make_connection(sconn, now, service, client_devicetype,
req->vuid, &nt_status);
req->conn =conn;