patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / net / ipv4 / netfilter / ipt_TCPMSS.c
index 369f84b..4ef4782 100644 (file)
@@ -186,8 +186,9 @@ ipt_tcpmss_target(struct sk_buff **pskb,
               newmss);
 
  retmodified:
-       /* If we had a hardware checksum before, it's now invalid */
-       (*pskb)->ip_summed = CHECKSUM_NONE;
+       /* We never hw checksum SYN packets.  */
+       BUG_ON((*pskb)->ip_summed == CHECKSUM_HW);
+
        (*pskb)->nfcache |= NFC_UNKNOWN | NFC_ALTERED;
        return IPT_CONTINUE;
 }