Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d61ba9fd authored by Jan Engelhardt's avatar Jan Engelhardt Committed by David S. Miller
Browse files

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: default avatarMatt Cross <matthltc@us.ibm.com>
Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 656caff2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ static inline int ebt_do_match (struct ebt_entry_match *m,
{
{
	par->match     = m->u.match;
	par->match     = m->u.match;
	par->matchinfo = m->data;
	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)
static inline int ebt_dev_check(char *entry, const struct net_device *device)