mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:smb2_server: remember the request_time on an incoming request
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 15 09:17:33 CEST 2012 on sn-devel-104
This commit is contained in:
parent
d8b3687fcb
commit
8cca7b09ad
@ -379,6 +379,8 @@ struct smbd_smb2_request {
|
||||
bool cancelled;
|
||||
bool compound_related;
|
||||
|
||||
struct timeval request_time;
|
||||
|
||||
/* fake smb1 request. */
|
||||
struct smb_request *smb1req;
|
||||
struct files_struct *compat_chain_fsp;
|
||||
|
@ -36,6 +36,7 @@ struct smb_request *smbd_smb2_fake_smb_request(struct smbd_smb2_request *req)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
smbreq->request_time = req->request_time;
|
||||
smbreq->vuid = req->session->compat_vuser->vuid;
|
||||
smbreq->tid = req->tcon->compat_conn->cnum;
|
||||
smbreq->conn = req->tcon->compat_conn;
|
||||
|
@ -571,6 +571,8 @@ static NTSTATUS smbd_smb2_request_setup_out(struct smbd_smb2_request *req)
|
||||
int count;
|
||||
int idx;
|
||||
|
||||
req->request_time = timeval_current();
|
||||
|
||||
count = req->in.vector_count;
|
||||
vector = talloc_zero_array(req, struct iovec, count);
|
||||
if (vector == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user