From 3ce7643c221878785ed0390cdc65e69054887f08 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Sun, 13 Apr 2008 02:52:40 +0000 Subject: relax parameter checking for UDP and TCP --- extensions/libct_proto_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libct_proto_tcp.c') diff --git a/extensions/libct_proto_tcp.c b/extensions/libct_proto_tcp.c index b17a931..dc48d09 100644 --- a/extensions/libct_proto_tcp.c +++ b/extensions/libct_proto_tcp.c @@ -200,7 +200,7 @@ static void final_check(unsigned int flags, unsigned int cmd, struct nf_conntrack *ct) { - if ((1 << cmd) & (CT_CREATE|CT_UPDATE|CT_DELETE|CT_GET) && + if ((1 << cmd) & (CT_CREATE|CT_GET) && !((flags & TCP_ORIG_SPORT && flags & TCP_ORIG_DPORT) || (flags & TCP_REPL_SPORT && flags & TCP_REPL_DPORT))) exit_error(PARAMETER_PROBLEM, "missing ports"); -- cgit v1.2.3