CVE-2022-37966 s3:client: Fix old-style function definition
authorAndreas Schneider <asn@samba.org>
Thu, 27 Oct 2022 06:46:39 +0000 (08:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2022 10:28:16 +0000 (10:28 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 81f4335dfb847c041bfd3d6110fc8f1d5741d41f)

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/client/clitar.c

index d62b53d2b17055246e1951cf35c52a9c8b8cf335..a5c7df9c869eed3c935756d865331c627c076a90 100644 (file)
@@ -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;
 }