diff options
author | Florian Westphal <fw@strlen.de> | 2019-05-23 15:44:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-31 18:02:46 +0200 |
commit | 3862c6a91a431337ead5685d647b83f5a82f7705 (patch) | |
tree | 4f04543bad7a84e4829a41621128021e3d774d85 /net/netfilter | |
parent | 86f045385462597e96f5481198a6c60d18d109ca (diff) | |
download | linux-3862c6a91a431337ead5685d647b83f5a82f7705.tar.gz linux-3862c6a91a431337ead5685d647b83f5a82f7705.tar.bz2 linux-3862c6a91a431337ead5685d647b83f5a82f7705.zip |
netfilter: ipv4: prefer skb_ensure_writable
.. so skb_make_writable can be removed soon.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_nat_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_nat_sip.c b/net/netfilter/nf_nat_sip.c index 464387b3600f..07805bf4d62a 100644 --- a/net/netfilter/nf_nat_sip.c +++ b/net/netfilter/nf_nat_sip.c @@ -285,7 +285,7 @@ next: if (dir == IP_CT_DIR_REPLY && ct_sip_info->forced_dport) { struct udphdr *uh; - if (!skb_make_writable(skb, skb->len)) { + if (skb_ensure_writable(skb, skb->len)) { nf_ct_helper_log(skb, ct, "cannot mangle packet"); return NF_DROP; } |