]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: ipt_ecn: fix protocol check in ecn_mt_check()
authorPatrick McHardy <kaber@trash.net>
Thu, 16 Jun 2011 15:24:17 +0000 (17:24 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Jun 2011 15:24:17 +0000 (17:24 +0200)
commit58d5a0257d2fd89fbe4451f704193cc95b0a9c97
tree63ed637719b75c9b3476c360ef14662df3703a75
parent63f6fe92c6b3cbf4c0bbbea4b31fdd3d68e21e4d
netfilter: ipt_ecn: fix protocol check in ecn_mt_check()

Check for protocol inversion in ecn_mt_check() and remove the
unnecessary runtime check for IPPROTO_TCP in ecn_mt().

Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ipt_ecn.c