]> git.neil.brown.name Git - history.git/commitdiff
[NET]: Fix socket test in dev_queue_xmit_nit().
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Thu, 16 Oct 2003 18:08:58 +0000 (11:08 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 16 Oct 2003 18:08:58 +0000 (11:08 -0700)
net/core/dev.c

index 74d7342e045f9e04d73211524aed8257b1ddedea..7cf411e5eb5c53e596dc17408a94b7d9d253b66d 100644 (file)
@@ -943,7 +943,8 @@ void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev)
                 * they originated from - MvS (miquels@drinkel.ow.org)
                 */
                if ((ptype->dev == dev || !ptype->dev) &&
-                   (struct sock *)ptype->af_packet_priv != skb->sk) {
+                   (ptype->af_packet_priv == NULL ||
+                    (struct sock *)ptype->af_packet_priv != skb->sk)) {
                        struct sk_buff *skb2= skb_clone(skb, GFP_ATOMIC);
                        if (!skb2)
                                break;