]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
netfilter: nf_ct_ipv4: handle invalid IPv4 and IPv6 packets consistently
[mv-sheeva.git] / net / ipv4 / netfilter / nf_conntrack_l3proto_ipv4.c
index de9da21113a11be6c9f57b15a97b3936a574e512..750b06afd20e9ba81a9ba3c2593b49e1a4481145 100644 (file)
@@ -74,12 +74,12 @@ static int ipv4_get_l4proto(const struct sk_buff *skb, unsigned int nhoff,
 
        iph = skb_header_pointer(skb, nhoff, sizeof(_iph), &_iph);
        if (iph == NULL)
-               return -NF_DROP;
+               return -NF_ACCEPT;
 
        /* Conntrack defragments packets, we might still see fragments
         * inside ICMP packets though. */
        if (iph->frag_off & htons(IP_OFFSET))
-               return -NF_DROP;
+               return -NF_ACCEPT;
 
        *dataoff = nhoff + (iph->ihl << 2);
        *protonum = iph->protocol;