aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-09-20 11:58:50 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:19:48 -0700
commit2be344c4461d29b99113f62fa91c5ceab9997329 (patch)
treed543156b5811e9577384e76d02417826b82e8155 /net/ipv4
parent68e1f188de535865d4543bae92d168c007857e7b (diff)
downloadkernel_samsung_tuna-2be344c4461d29b99113f62fa91c5ceab9997329.zip
kernel_samsung_tuna-2be344c4461d29b99113f62fa91c5ceab9997329.tar.gz
kernel_samsung_tuna-2be344c4461d29b99113f62fa91c5ceab9997329.tar.bz2
[NETFILTER]: ipt_TCPMSS: remove impossible condition
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_TCPMSS.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/ipv4/netfilter/ipt_TCPMSS.c b/net/ipv4/netfilter/ipt_TCPMSS.c
index bfc8d9c..b2d3c4f 100644
--- a/net/ipv4/netfilter/ipt_TCPMSS.c
+++ b/net/ipv4/netfilter/ipt_TCPMSS.c
@@ -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())