]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipvs: fix incorrect conflict resolution
authorFlorian Westphal <fw@strlen.de>
Tue, 18 Apr 2017 15:49:56 +0000 (17:49 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Apr 2017 15:55:17 +0000 (17:55 +0200)
commitbb44945ea88111227c9b51b3c3c08f50eaf01183
tree24b0d71b0fd286541141d712c771dba839bb3ba2
parentcff4f8d2b404b64252d46ce7000657ba4b2a71ec
netfilter: ipvs: fix incorrect conflict resolution

The commit a0eff9159e6c0966218dffddb4c723d33a86fbd2
("netfilter: remove nf_ct_is_untracked")
changed the line
   if (ct && !nf_ct_is_untracked(ct) && nfct_nat(ct)) {
   to
   if (ct && nfct_nat(ct)) {

meanwhile, the commit 8fc5e7c962513d882727eebbcc95f336c616bc0e
("netfilter: ipvs: don't check for presence of nat extension")
from ipvs-next had changed the same line to

  if (ct && !nf_ct_is_untracked(ct) && (ct->status & IPS_NAT_MASK)) {

When ipvs-next got merged into nf-next, the merge resolution took
the first version, dropping the conversion of nfct_nat().

While this doesn't cause a problem at the moment, it will once we stop
adding the nat extension by default.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ftp.c