[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)
commitbbdc176a2f39913063aaaf95bc27e4b18fd14953
tree99089b7efc4c5c76d7afdc07f82537b9c525a799
parentc9386cfddc11e331fa7c860cccaedc2ae8f459f8
[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