mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
656caff20e
commit
d61ba9fd55
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue