diff options
author | Volker Lendecke <vl@samba.org> | 2019-07-01 14:19:16 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-07-02 17:01:27 +0000 |
commit | e36398d93b6a26c25d034b815671e9744392b234 (patch) | |
tree | 3b270cd49c366260c1b9ccdd7e61c833405f5e14 /source3/locking | |
parent | ee9527f5c3b75c325dd8f5d659d4385acc28ddd3 (diff) | |
download | samba-e36398d93b6a26c25d034b815671e9744392b234.tar.gz |
smbd: Ensure initialized vars in do_lock
brl_lock does not initialize these variables in all cases
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index aa4d17e04d1..c186312f93f 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -243,8 +243,8 @@ struct byte_range_lock *do_lock(struct messaging_context *msg_ctx, uint64_t *psmblctx) { struct byte_range_lock *br_lck = NULL; - struct server_id blocker_pid; - uint64_t blocker_smblctx; + struct server_id blocker_pid = { 0 }; + uint64_t blocker_smblctx = 0; /* silently return ok on print files as we don't do locking there */ if (fsp->print_file) { |