From: Ralph Boehme Date: Mon, 8 Dec 2025 15:49:14 +0000 (+0100) Subject: smbd: use SMB2_LEASE_NONE in get_lease_type() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c47ef5191ec95452fcc4ca587a4dfd165a225c1e;p=thirdparty%2Fsamba.git smbd: use SMB2_LEASE_NONE in get_lease_type() No change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Anoop C S --- diff --git a/source3/smbd/smb2_oplock.c b/source3/smbd/smb2_oplock.c index fa07a9bf6ed..e518333905c 100644 --- a/source3/smbd/smb2_oplock.c +++ b/source3/smbd/smb2_oplock.c @@ -216,7 +216,7 @@ uint32_t get_lease_type(struct share_mode_entry *e, struct file_id id) } if (share_entry_stale_pid(e)) { - return 0; + return SMB2_LEASE_NONE; } DBG_ERR("leases_db_get for client_guid [%s] " "lease_key [%"PRIx64"/%"PRIx64"] "