]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
locking: Fix an uninitialized variable read
authorVolker Lendecke <vl@samba.org>
Wed, 3 Mar 2021 18:19:23 +0000 (19:19 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Mar 2021 10:18:07 +0000 (10:18 +0000)
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>
source3/locking/share_mode_lock.c

index e8bb3e58e1f074f36a109ca6c1610cda2461ad21..d8c5222d70aab46bb3bf0bfda92ff3c26cddb656 100644 (file)
@@ -2167,7 +2167,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;