From 4db4df284d5e1d5300b9cd1597581c110cca3807 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 31 Oct 2023 12:16:15 +1300 Subject: [PATCH] s3:utils: Initialize flags (CID 1499396) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If ‘got_bcast’ is false and ‘give_flags’ is true, this variable will be used uninitialized. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source3/utils/nmblookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 005daaba0d..9523f71a6b 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -164,7 +164,7 @@ static bool do_node_status(const char *name, static bool query_one(const char *lookup, unsigned int lookup_type) { size_t j, count = 0; - uint8_t flags; + uint8_t flags = 0; struct sockaddr_storage *ip_list=NULL; NTSTATUS status = NT_STATUS_NOT_FOUND; -- 2.34.1