]> git.ipfire.org Git - thirdparty/samba.git/commit
s3/brlock: don't increment current_lock_count if do_lock_fn() failed
authorRalph Boehme <slow@samba.org>
Wed, 8 Jan 2025 14:43:04 +0000 (15:43 +0100)
committerJule Anger <janger@samba.org>
Thu, 17 Apr 2025 11:16:13 +0000 (11:16 +0000)
commit3ac1e43d46e8ac64b06e8ae0bbc8b52af8093be1
tree3ae2fbb9f613085875216e45a921434dd87b1e18
parent0d06276060f7aebefdffb51342de57212e75e8b2
s3/brlock: don't increment current_lock_count if do_lock_fn() failed

Also only assign psmblctx and pblocker_pid if the lock request failed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3a0c6e99de4377f44bc29766b6ceb79040caed9f)
source3/locking/locking.c