From: Phil Oester Date: Sun, 1 Sep 2013 15:32:21 +0000 (-0700) Subject: netfilter: xt_TCPMSS: correct return value in tcpmss_mangle_packet X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1205e1fa615805c9efa97303b552cf445965752a;p=openwrt%2Fstaging%2Fblogic.git netfilter: xt_TCPMSS: correct return value in tcpmss_mangle_packet In commit b396966c4 (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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/xt_TCPMSS.c b/net/netfilter/xt_TCPMSS.c index 6113cc7efffc..cd24290f3b2f 100644 --- a/net/netfilter/xt_TCPMSS.c +++ b/net/netfilter/xt_TCPMSS.c @@ -60,7 +60,7 @@ tcpmss_mangle_packet(struct sk_buff *skb, /* This is a fragment, no TCP header is available */ if (par->fragoff != 0) - return XT_CONTINUE; + return 0; if (!skb_make_writable(skb, skb->len)) return -1;