From: Andreas Schneider Date: Thu, 27 Oct 2022 06:46:39 +0000 (+0200) Subject: CVE-2022-37966 s3:client: Fix old-style function definition X-Git-Tag: samba-4.15.13~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f94a270722594b521cbef6387b440759e2cb3ac;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/client/clitar.c b/source3/client/clitar.c index d62b53d2b17..a5c7df9c869 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; }