summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-03-03 13:49:46 +0100
committerMichael Adam <obnox@samba.org>2014-03-03 16:30:53 +0100
commitbbd0bda9c2213215efeb13f5fe527d2409dc79b2 (patch)
treef54820188f67407a96f915bfaaef07f9ea9cc667 /source3
parent7e12bfc6a8fe97da907525ae90288e37c4fa7a7f (diff)
downloadsamba-bbd0bda9c2213215efeb13f5fe527d2409dc79b2.tar.gz
smbd: Fix an uninitialized memory read
This might be the reason for a few flaky builds. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Mar 3 16:30:53 CET 2014 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/brlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index e6c89490ae3..ac22ba44d9a 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -2085,6 +2085,8 @@ static void brl_get_locks_readonly_parser(TDB_DATA key, TDB_DATA data,
if ((data.dsize % sizeof(struct lock_struct)) == 1) {
br_lock->have_read_oplocks = (data.dptr[data.dsize-1] == 1);
+ } else {
+ br_lock->have_read_oplocks = false;
}
DEBUG(10, ("Got %d bytes, have_read_oplocks: %s\n", (int)data.dsize,