From af97381b11572befe35dc0cb32ccce59a3f4beaa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 1 Aug 2019 16:42:59 +0200 Subject: [PATCH] smbd: Use "req->request_time" in schedule_async_open() The one caller passed that in. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 84d08abcfc7..2c9f7e88528 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2655,14 +2655,13 @@ static void schedule_async_open_timer(struct tevent_context *ev, exit_server("async open timeout"); } -static void schedule_async_open(struct timeval request_time, - struct smb_request *req) +static void schedule_async_open(struct smb_request *req) { struct deferred_open_record *open_rec = NULL; struct timeval timeout = timeval_set(20, 0); bool ok; - if (request_timed_out(request_time, timeout)) { + if (request_timed_out(req->request_time, timeout)) { return; } @@ -2671,7 +2670,7 @@ static void schedule_async_open(struct timeval request_time, exit_server("deferred_open_record_create failed"); } - ok = push_deferred_open_message_smb(req, request_time, timeout, + ok = push_deferred_open_message_smb(req, req->request_time, timeout, (struct file_id){0}, open_rec); if (!ok) { exit_server("push_deferred_open_message_smb failed"); @@ -3357,7 +3356,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, if (!NT_STATUS_IS_OK(fsp_open)) { if (NT_STATUS_EQUAL(fsp_open, NT_STATUS_RETRY)) { - schedule_async_open(req->request_time, req); + schedule_async_open(req); } return fsp_open; } -- 2.47.3