mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:smbXsrv_open: allow now==0 to skip the idle_time update.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f71780202a
commit
8d45b75df3
@ -444,7 +444,9 @@ static NTSTATUS smbXsrv_open_local_lookup(struct smbXsrv_open_table *table,
|
||||
return NT_STATUS_FILE_CLOSED;
|
||||
}
|
||||
|
||||
state.op->idle_time = now;
|
||||
if (now != 0) {
|
||||
state.op->idle_time = now;
|
||||
}
|
||||
|
||||
*_open = state.op;
|
||||
return state.op->status;
|
||||
|
Loading…
Reference in New Issue
Block a user