Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296239
b: refs/heads/master
c: eeb4cb9
h: refs/heads/master
i:
  296237: 1337bdf
  296235: 18e29bf
  296231: 5a3df1c
  296223: 5d8d56e
v: v3
  • Loading branch information
Pablo Neira Ayuso committed Mar 22, 2012
1 parent 70775b0 commit 9e3a029
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ac0bf99260761ad0a536ddbc15f6f9b82b9bab3
refs/heads/master: eeb4cb952386aac764a5cf4cf2490e50a24a8880
9 changes: 8 additions & 1 deletion trunk/net/netfilter/xt_CT.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_CT.h>
#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_l4proto.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_ecache.h>
#include <net/netfilter/nf_conntrack_l4proto.h>
Expand Down Expand Up @@ -224,6 +225,7 @@ static int xt_ct_tg_check_v1(const struct xt_tgchk_param *par)

if (timeout_find_get) {
const struct ipt_entry *e = par->entryinfo;
struct nf_conntrack_l4proto *l4proto;

if (e->ip.invflags & IPT_INV_PROTO) {
ret = -EINVAL;
Expand All @@ -245,7 +247,12 @@ static int xt_ct_tg_check_v1(const struct xt_tgchk_param *par)
info->timeout, timeout->l3num);
goto err4;
}
if (timeout->l4proto->l4proto != e->ip.proto) {
/* Make sure the timeout policy matches any existing
* protocol tracker, otherwise default to generic.
*/
l4proto = __nf_ct_l4proto_find(par->family,
e->ip.proto);
if (timeout->l4proto->l4proto != l4proto->l4proto) {
ret = -EINVAL;
pr_info("Timeout policy `%s' can only be "
"used by L4 protocol number %d\n",
Expand Down

0 comments on commit 9e3a029

Please sign in to comment.