Skip to content

Commit f11bce4

Browse files
committed
smbd: in contend_dirleases() don't bother checking when not enabled
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15984 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Martin Schwenke <martins@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Jan 26 12:09:13 UTC 2026 on atb-devel-224
1 parent 4c657ab commit f11bce4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source3/smbd/smb2_oplock.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,10 @@ void contend_dirleases(struct connection_struct *conn,
13161316
int ret;
13171317
bool ok;
13181318

1319+
if (!lp_smb3_directory_leases()) {
1320+
return;
1321+
}
1322+
13191323
if (lease != NULL) {
13201324
DBG_DEBUG("Parent leasekey %"PRIx64"/%"PRIx64"\n",
13211325
lease->parent_lease_key.data[0],

0 commit comments

Comments
 (0)