]> 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)
committerRalph Boehme <slow@samba.org>
Wed, 2 Apr 2025 18:05:48 +0000 (18:05 +0000)
commit3a0c6e99de4377f44bc29766b6ceb79040caed9f
tree0805aff9dbcfdf7ed40ba13727ac23db9e51da97
parente17fb732c89f8b34de00904383044de3c4f85bd0
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>
source3/locking/locking.c