From: Joseph Sutton Date: Thu, 28 Sep 2023 03:49:56 +0000 (+1300) Subject: s3:smbd: Fix building with FORTIFY_SOURCE=2 X-Git-Tag: tevent-0.16.0~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3eaa285d81df401489795e712ac3c69656ef8cd;p=thirdparty%2Fsamba.git s3:smbd: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 55b383072e6..317599e38b4 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -2457,7 +2457,7 @@ static NTSTATUS smbd_smb2_request_process_cancel(struct smbd_smb2_request *req) uint32_t flags; uint64_t search_message_id; uint64_t search_async_id; - uint64_t found_id; + uint64_t found_id = 0; inhdr = SMBD_SMB2_IN_HDR_PTR(req);