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_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libct_proto_udp.c') diff --git a/extensions/libct_proto_udp.c b/extensions/libct_proto_udp.c index cb52c58..d74def5 100644 --- a/extensions/libct_proto_udp.c +++ b/extensions/libct_proto_udp.c @@ -165,7 +165,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 & UDP_ORIG_SPORT && flags & UDP_ORIG_DPORT) || (flags & UDP_REPL_SPORT && flags & UDP_REPL_DPORT))) exit_error(PARAMETER_PROBLEM, "missing ports"); -- cgit v1.2.3