diff options
Diffstat (limited to 'meta/recipes-extended/iptables/iptables/format-security.patch')
-rw-r--r-- | meta/recipes-extended/iptables/iptables/format-security.patch | 31 |
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 @@ | |||
1 | From ed4082a7405a5838c205a34c1559e289949200cc Mon Sep 17 00:00:00 2001 | ||
2 | From: Phil Sutter <phil@nwl.cc> | ||
3 | Date: Thu, 12 Jan 2023 14:38:44 +0100 | ||
4 | Subject: extensions: NAT: Fix for -Werror=format-security | ||
5 | |||
6 | Have to pass either a string literal or format string to xt_xlate_add(). | ||
7 | |||
8 | Fixes: f30c5edce0413 ("extensions: Merge SNAT, DNAT, REDIRECT and MASQUERADE") | ||
9 | Signed-off-by: Phil Sutter <phil@nwl.cc> | ||
10 | Upstream-Status: Backport [https://git.netfilter.org/iptables/commit/?id=ed4082a7405a5838c205a34c1559e289949200cc] | ||
11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
12 | --- | ||
13 | extensions/libxt_NAT.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/extensions/libxt_NAT.c b/extensions/libxt_NAT.c | ||
17 | index 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 | -- | ||
30 | cgit v1.2.3 | ||
31 | |||