iptables: update to 1.8.8
[openwrt/openwrt.git] / package / network / utils / iptables / patches / 040-xshared-Fix-build-for-Werror-format-security.patch
diff --git a/package/network/utils/iptables/patches/040-xshared-Fix-build-for-Werror-format-security.patch b/package/network/utils/iptables/patches/040-xshared-Fix-build-for-Werror-format-security.patch
new file mode 100644 (file)
index 0000000..f7e5e34
--- /dev/null
@@ -0,0 +1,23 @@
+From b72eb12ea5a61df0655ad99d5048994e916be83a Mon Sep 17 00:00:00 2001
+From: Phil Sutter <phil@nwl.cc>
+Date: Fri, 13 May 2022 16:51:58 +0200
+Subject: [PATCH] xshared: Fix build for -Werror=format-security
+
+Gcc complains about the omitted format string.
+
+Signed-off-by: Phil Sutter <phil@nwl.cc>
+---
+ iptables/xshared.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/iptables/xshared.c
++++ b/iptables/xshared.c
+@@ -1307,7 +1307,7 @@ static void check_empty_interface(struct
+               return;
+       if (args->family != NFPROTO_ARP)
+-              xtables_error(PARAMETER_PROBLEM, msg);
++              xtables_error(PARAMETER_PROBLEM, "%s", msg);
+       fprintf(stderr, "%s", msg);
+ }