diff options
author | Florian Westphal <fw@strlen.de> | 2019-05-23 15:44:11 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-31 18:02:48 +0200 |
commit | fb2eb1c131f8526905a83bd98fd2d4e7c9f950a0 (patch) | |
tree | c9fb6294ce98bb494f6a0bcf2ae9e07dcf3c5e32 /net/netfilter/xt_TCPMSS.c | |
parent | netfilter: xt_HL: prefer skb_ensure_writable (diff) | |
download | linux-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.c | 2 |
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; |