projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656caff
)
netfilter 05/09: ebtables: fix inversion in match code
author
Jan Engelhardt
<
[email protected]
>
Mon, 12 Jan 2009 00:06:06 +0000
(
00:06
+0000)
committer
David S. Miller
<
[email protected]
>
Tue, 13 Jan 2009 05:18:35 +0000
(21:18 -0800)
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 <
[email protected]
>
Signed-off-by: Jan Engelhardt <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/bridge/netfilter/ebtables.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/ebtables.c
b/net/bridge/netfilter/ebtables.c
index 8a8743d7d6e77cf36ce4cec7ebe1748be158ba5f..820252aee81f1c1f59bba3cf3e666c2e494b5812 100644
(file)
--- 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)