From 6b49ab1c7e8b32644423fafe1ba59d2ed9db15c2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 27 Oct 2022 08:46:39 +0200 Subject: [PATCH 02/54] CVE-2022-37966 s3:client: Fix old-style function definition Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison (cherry picked from commit 81f4335dfb847c041bfd3d6110fc8f1d5741d41f) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237 Signed-off-by: Stefan Metzmacher Conflict: NA Reference: https://attachments.samba.org/attachment.cgi?id=17695 --- source3/client/clitar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/client/clitar.c b/source3/client/clitar.c index d62b53d2b170..a5c7df9c869e 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -218,7 +218,7 @@ static NTSTATUS is_subpath(const char *sub, const char *full, /* * tar_get_ctx - retrieve global tar context handle */ -struct tar *tar_get_ctx() +struct tar *tar_get_ctx(void) { return &tar_ctx; } -- 2.34.1