Skip to content

Commit

Permalink
[NETFILTER]: ipt_TCPMSS: remove impossible condition
Browse files Browse the repository at this point in the history
Every skb must have a dst_entry at this point.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 22, 2006
1 parent 68e1f18 commit 2be344c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/ipv4/netfilter/ipt_TCPMSS.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ ipt_tcpmss_target(struct sk_buff **pskb,
}

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) +
sizeof(struct tcphdr)) {
if (net_ratelimit())
Expand Down

0 comments on commit 2be344c

Please sign in to comment.