diff options
author | Volker Lendecke <vl@samba.org> | 2021-03-03 19:19:23 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-03-08 09:47:48 +0000 |
commit | 02264306200fc718c066ea2ecdadd1f03ffb9ea3 (patch) | |
tree | 53b88de5353acefe6470b2077d03d5e7eb947689 | |
parent | 1c02f82ec6f179e4dc6b66fd3d76bae955e781fe (diff) | |
download | samba-02264306200fc718c066ea2ecdadd1f03ffb9ea3.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 80c04fdeda0..fd8d7c71b9e 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -2150,7 +2150,7 @@ static bool share_mode_entry_do( struct locking_tdb_data *ltdb = NULL; size_t idx; bool found = false; - bool modified; + bool modified = false; struct share_mode_entry e; uint8_t *e_ptr = NULL; bool had_share_entries, have_share_entries; |