aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_TCPMSS.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-05-23 15:44:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-05-31 18:02:48 +0200
commitfb2eb1c131f8526905a83bd98fd2d4e7c9f950a0 (patch)
treec9fb6294ce98bb494f6a0bcf2ae9e07dcf3c5e32 /net/netfilter/xt_TCPMSS.c
parentnetfilter: xt_HL: prefer skb_ensure_writable (diff)
downloadlinux-dev-fb2eb1c131f8526905a83bd98fd2d4e7c9f950a0.tar.xz
linux-dev-fb2eb1c131f8526905a83bd98fd2d4e7c9f950a0.zip
netfilter: tcpmss, optstrip: prefer skb_ensure_writable
This also changes optstrip to only make the tcp header writeable rather than the entire packet. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_TCPMSS.c')
-rw-r--r--net/netfilter/xt_TCPMSS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_TCPMSS.c b/net/netfilter/xt_TCPMSS.c
index 98efb202f8b4..3e24443ab81c 100644
--- a/net/netfilter/xt_TCPMSS.c
+++ b/net/netfilter/xt_TCPMSS.c
@@ -89,7 +89,7 @@ tcpmss_mangle_packet(struct sk_buff *skb,
if (par->fragoff != 0)
return 0;
- if (!skb_make_writable(skb, skb->len))
+ if (skb_ensure_writable(skb, skb->len))
return -1;
len = skb->len - tcphoff;