diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-12 00:06:06 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-12 21:18:35 -0800 |
commit | d61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d (patch) | |
tree | aa15f4d4e3f4a04289f95e048d14c5fd60943feb /net/bridge | |
parent | 656caff20e12ba6e07b4bf342641df5ab33b4e49 (diff) | |
download | blackbird-obmc-linux-d61ba9fd55b52a10b8e0ffd39bbc33587d3bfc8d.tar.gz blackbird-obmc-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')
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 2 |
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) |