Commit c700a9de authored by Petr Vandrovec's avatar Petr Vandrovec Committed by Stephen Hemminger

[NET]: Fix socket test in dev_queue_xmit_nit().

parent aaf269ce
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment