If the lease record was lost due to a node outage, just return
SMB2_LEASE_NONE. Note that e->protect will only be set to true for Persistent
Handles and if the handle is currently disconnected.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
if (share_entry_stale_pid(e)) {
return SMB2_LEASE_NONE;
}
+ if (e->protect) {
+ return SMB2_LEASE_NONE;
+ }
DBG_ERR("leases_db_get for client_guid [%s] "
"lease_key [%"PRIx64"/%"PRIx64"] "
"file_id [%s] failed: %s\n",