]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use SMB2_LEASE_NONE in get_lease_type()
authorRalph Boehme <slow@samba.org>
Mon, 8 Dec 2025 15:49:14 +0000 (16:49 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:37 +0000 (10:18 +0000)
No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/smb2_oplock.c

index fa07a9bf6ede6f3e8bd7b59a2e7e5688fd539801..e518333905c391a6d64e109d5fc52bb3e7f4c3c0 100644 (file)
@@ -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"] "