Skip to content

Commit 1205e1f

Browse files
Phil Oesterummakynes
authored andcommitted
netfilter: xt_TCPMSS: correct return value in tcpmss_mangle_packet
In commit b396966 (netfilter: xt_TCPMSS: Fix missing fragmentation handling), I attempted to add safe fragment handling to xt_TCPMSS. However, Andy Padavan of Project N56U correctly points out that returning XT_CONTINUE in this function does not work. The callers (tcpmss_tg[46]) expect to receive a value of 0 in order to return XT_CONTINUE. Signed-off-by: Phil Oester <kernel@linuxace.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 7cc9eb6 commit 1205e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/xt_TCPMSS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ tcpmss_mangle_packet(struct sk_buff *skb,
6060

6161
/* This is a fragment, no TCP header is available */
6262
if (par->fragoff != 0)
63-
return XT_CONTINUE;
63+
return 0;
6464

6565
if (!skb_make_writable(skb, skb->len))
6666
return -1;

0 commit comments

Comments
 (0)