From: Volker Lendecke Date: Mon, 1 Jul 2019 12:19:16 +0000 (+0200) Subject: smbd: Ensure initialized vars in do_lock X-Git-Tag: ldb-2.0.5~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e36398d93b6a26c25d034b815671e9744392b234;p=thirdparty%2Fsamba.git smbd: Ensure initialized vars in do_lock brl_lock does not initialize these variables in all cases Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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) {