ip_forward: Drop frames with attached skb->sk
[pandora-kernel.git] / net / ipv4 / ip_forward.c
index 29a07b6..bcd78a3 100644 (file)
@@ -57,6 +57,9 @@ int ip_forward(struct sk_buff *skb)
        struct rtable *rt;      /* Route we use */
        struct ip_options * opt = &(IPCB(skb)->opt);
 
+       if (unlikely(skb->sk))
+               goto drop;
+
        if (skb_warn_if_lro(skb))
                goto drop;