Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vandrovec <vandrove@vc.cvut.cz>2003-10-16 11:08:58 -0700
committerStephen Hemminger <shemminger@osdl.org>2003-10-16 11:08:58 -0700
commitc700a9de6dd6f700db8c8fb4ea13d7c6b1ad9f1a (patch)
tree0f9f391334125a617293aa31099551157e8d5fdb
parentaaf269ce9e09786631e6ca59d4278cbe4c963b30 (diff)
[NET]: Fix socket test in dev_queue_xmit_nit().
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 74d7342e045f..7cf411e5eb5c 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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;