The branch, master has been updated
via f11bce483a6 smbd: in contend_dirleases() don't bother checking when
not enabled
from 4c657abaa0a s3:libads: Allocate cli_credentials on a stackframe
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit f11bce483a6403d9ed250c874105248c8e9782e2
Author: Ralph Boehme <[email protected]>
Date: Fri Jan 23 11:27:28 2026 +0100
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 <[email protected]>
Reviewed-by: Martin Schwenke <[email protected]>
Autobuild-User(master): Ralph Böhme <[email protected]>
Autobuild-Date(master): Mon Jan 26 12:09:13 UTC 2026 on atb-devel-224
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/smb2_oplock.c | 4 ++++
1 file changed, 4 insertions(+)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/smb2_oplock.c b/source3/smbd/smb2_oplock.c
index 5c2a1ae848f..8f1e8540818 100644
--- a/source3/smbd/smb2_oplock.c
+++ b/source3/smbd/smb2_oplock.c
@@ -1316,6 +1316,10 @@ void contend_dirleases(struct connection_struct *conn,
int ret;
bool ok;
+ if (!lp_smb3_directory_leases()) {
+ return;
+ }
+
if (lease != NULL) {
DBG_DEBUG("Parent leasekey %"PRIx64"/%"PRIx64"\n",
lease->parent_lease_key.data[0],
--
Samba Shared Repository