]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: ipt_TCPMSS: remove impossible condition
authorPatrick McHardy <kaber@trash.net>
Wed, 20 Sep 2006 18:58:50 +0000 (11:58 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:48 +0000 (15:19 -0700)
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>
net/ipv4/netfilter/ipt_TCPMSS.c

index bfc8d9c7d020cd8e9ecffb8c307fd6676c29e9cc..b2d3c4f992d195a99a929b0ecb10234711ebaaf1 100644 (file)
@@ -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())