Commit 2be344c4 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: ipt_TCPMSS: remove impossible condition

Every skb must have a dst_entry at this point.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 68e1f188
...@@ -73,13 +73,6 @@ ipt_tcpmss_target(struct sk_buff **pskb, ...@@ -73,13 +73,6 @@ ipt_tcpmss_target(struct sk_buff **pskb,
} }
if (tcpmssinfo->mss == IPT_TCPMSS_CLAMP_PMTU) { if (tcpmssinfo->mss == IPT_TCPMSS_CLAMP_PMTU) {
if (!(*pskb)->dst) {
if (net_ratelimit())
printk(KERN_ERR "ipt_tcpmss_target: "
"no dst?! can't determine path-MTU\n");
return NF_DROP; /* or IPT_CONTINUE ?? */
}
if (dst_mtu((*pskb)->dst) <= sizeof(struct iphdr) + if (dst_mtu((*pskb)->dst) <= sizeof(struct iphdr) +
sizeof(struct tcphdr)) { sizeof(struct tcphdr)) {
if (net_ratelimit()) if (net_ratelimit())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment