]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: nf_nat: fix MASQUERADE crash on device down
authorMartin Josefsson <gandalf@wlug.westbo.se>
Thu, 4 Jan 2007 20:16:54 +0000 (12:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2007 20:16:54 +0000 (12:16 -0800)
commit19cbf96af91f41b7a35d909217f7b5ce54d24cea
tree99089b7efc4c5c76d7afdc07f82537b9c525a799
parent20a41a229a9a794f5022fd66149d83bb4eca1614
[NETFILTER]: nf_nat: fix MASQUERADE crash on device down

Check the return value of nfct_nat() in device_cmp(), we might very well
have non NAT conntrack entries as well (Netfilter bugzilla #528).

Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_MASQUERADE.c