Message ID | 20240628160505.161283-15-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | fe87a8deaad46c9a45381624f7e5f2f4fd145721 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,01/17] netfilter: nf_tables: make struct nft_trans first member of derived subtypes | expand |
diff --git a/net/netfilter/nfnetlink_cttimeout.c b/net/netfilter/nfnetlink_cttimeout.c index f466af4f8531..eab4f476b47f 100644 --- a/net/netfilter/nfnetlink_cttimeout.c +++ b/net/netfilter/nfnetlink_cttimeout.c @@ -366,8 +366,7 @@ static int cttimeout_default_set(struct sk_buff *skb, __u8 l4num; int ret; - if (!cda[CTA_TIMEOUT_L3PROTO] || - !cda[CTA_TIMEOUT_L4PROTO] || + if (!cda[CTA_TIMEOUT_L4PROTO] || !cda[CTA_TIMEOUT_DATA]) return -EINVAL;