summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-03-03 19:19:23 +0100
committerKarolin Seeger <kseeger@samba.org>2021-03-08 07:53:17 +0000
commitdf832cb62c01bf6a2a801340a4434c0db51c34e0 (patch)
tree9a613772c2b3b7589132c5a97e2bae5be07a7d96
parent88ee4160e886cfc18dae58930dd0af382537edc6 (diff)
downloadsamba-df832cb62c01bf6a2a801340a4434c0db51c34e0.tar.gz
locking: Fix an uninitialized variable read
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14636 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 84b634c613352fc1da8e1525d72597c526d534d2)
-rw-r--r--source3/locking/share_mode_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c
index a736bc24469..a0de9f5b070 100644
--- a/source3/locking/share_mode_lock.c
+++ b/source3/locking/share_mode_lock.c
@@ -1923,7 +1923,7 @@ static void share_mode_entry_do_fn(
struct share_mode_entry_do_state *state = private_data;
size_t idx;
bool found = false;
- bool modified;
+ bool modified = false;
struct share_mode_entry e;
struct share_mode_entry_buf buf;
TDB_DATA dbufs[3];