mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 04:40:55 +07:00
netfilter: nf_nat_snmp_basic: fix duplicates in if/else branches
The solution was found by Patrick in 2.4 kernel sources. Cc: Patrick McHardy <kaber@trash.net> Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
06efbd6d56
commit
2b7a79bae2
@ -1198,8 +1198,8 @@ static int snmp_translate(struct nf_conn *ct,
|
||||
map.to = NOCT1(&ct->tuplehash[!dir].tuple.dst.u3.ip);
|
||||
} else {
|
||||
/* DNAT replies */
|
||||
map.from = NOCT1(&ct->tuplehash[dir].tuple.src.u3.ip);
|
||||
map.to = NOCT1(&ct->tuplehash[!dir].tuple.dst.u3.ip);
|
||||
map.from = NOCT1(&ct->tuplehash[!dir].tuple.src.u3.ip);
|
||||
map.to = NOCT1(&ct->tuplehash[dir].tuple.dst.u3.ip);
|
||||
}
|
||||
|
||||
if (map.from == map.to)
|
||||
|
Loading…
Reference in New Issue
Block a user