summaryrefslogtreecommitdiffstats
path: root/net/bridge/netfilter/ebtables.c
diff options
context:
space:
mode:
authorJan Engelhardt2009-01-12 01:06:06 +0100
committerDavid S. Miller2009-01-13 06:18:35 +0100
commitd61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d (patch)
treeaa15f4d4e3f4a04289f95e048d14c5fd60943feb /net/bridge/netfilter/ebtables.c
parentnetfilter 04/09: x_tables: fix match/target revision lookup (diff)
downloadkernel-qcow2-linux-d61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d.tar.gz
kernel-qcow2-linux-d61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d.tar.xz
kernel-qcow2-linux-d61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d.zip
netfilter 05/09: ebtables: fix inversion in match code
Commit 8cc784ee (netfilter: change return types of match functions for ebtables extensions) broke ebtables matches by inverting the sense of match/nomatch. Reported-by: Matt Cross <matthltc@us.ibm.com> Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebtables.c')
-rw-r--r--net/bridge/netfilter/ebtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 8a8743d7d6e7..820252aee81f 100644
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -79,7 +79,7 @@ static inline int ebt_do_match (struct ebt_entry_match *m,
{
par->match = m->u.match;
par->matchinfo = m->data;
- return m->u.match->match(skb, par);
+ return m->u.match->match(skb, par) ? EBT_MATCH : EBT_NOMATCH;
}
static inline int ebt_dev_check(char *entry, const struct net_device *device)