git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
l2tp: fix race in pppol2tp_release with session object destroy
[pandora-kernel.git]
/
net
/
netfilter
/
xt_connbytes.c
diff --git
a/net/netfilter/xt_connbytes.c
b/net/netfilter/xt_connbytes.c
index
5b13850
..
9ddf1c3
100644
(file)
--- a/
net/netfilter/xt_connbytes.c
+++ b/
net/netfilter/xt_connbytes.c
@@
-87,10
+87,10
@@
connbytes_mt(const struct sk_buff *skb, struct xt_action_param *par)
break;
}
break;
}
- if (sinfo->count.to)
+ if (sinfo->count.to
>= sinfo->count.from
)
return what <= sinfo->count.to && what >= sinfo->count.from;
return what <= sinfo->count.to && what >= sinfo->count.from;
- else
- return what
>=
sinfo->count.from;
+ else
/* inverted */
+ return what
< sinfo->count.to || what >
sinfo->count.from;
}
static int connbytes_mt_check(const struct xt_mtchk_param *par)
}
static int connbytes_mt_check(const struct xt_mtchk_param *par)