summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/iptables/iptables/format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/iptables/iptables/format-security.patch')
-rw-r--r--meta/recipes-extended/iptables/iptables/format-security.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/meta/recipes-extended/iptables/iptables/format-security.patch b/meta/recipes-extended/iptables/iptables/format-security.patch
deleted file mode 100644
index fae920f0a8..0000000000
--- a/meta/recipes-extended/iptables/iptables/format-security.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From ed4082a7405a5838c205a34c1559e289949200cc Mon Sep 17 00:00:00 2001
2From: Phil Sutter <phil@nwl.cc>
3Date: Thu, 12 Jan 2023 14:38:44 +0100
4Subject: extensions: NAT: Fix for -Werror=format-security
5
6Have to pass either a string literal or format string to xt_xlate_add().
7
8Fixes: f30c5edce0413 ("extensions: Merge SNAT, DNAT, REDIRECT and MASQUERADE")
9Signed-off-by: Phil Sutter <phil@nwl.cc>
10Upstream-Status: Backport [https://git.netfilter.org/iptables/commit/?id=ed4082a7405a5838c205a34c1559e289949200cc]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 extensions/libxt_NAT.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/extensions/libxt_NAT.c b/extensions/libxt_NAT.c
17index da9f2201..2a634398 100644
18--- a/extensions/libxt_NAT.c
19+++ b/extensions/libxt_NAT.c
20@@ -424,7 +424,7 @@ __NAT_xlate(struct xt_xlate *xl, const struct nf_nat_range2 *r,
21 if (r->flags & NF_NAT_RANGE_PROTO_OFFSET)
22 return 0;
23
24- xt_xlate_add(xl, tgt);
25+ xt_xlate_add(xl, "%s", tgt);
26 if (strlen(range_str))
27 xt_xlate_add(xl, " to %s", range_str);
28 if (r->flags & NF_NAT_RANGE_PROTO_RANDOM) {
29--
30cgit v1.2.3
31