summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libct_proto_tcp.c2
-rw-r--r--extensions/libct_proto_udp.c2
2 files changed, 2 insertions, 2 deletions
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");
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");