diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index 302d6fb1ff2b..51d54dc376f3 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c | |||
@@ -49,7 +49,7 @@ | |||
49 | 49 | ||
50 | int ip6_rcv_finish(struct sk_buff *skb) | 50 | int ip6_rcv_finish(struct sk_buff *skb) |
51 | { | 51 | { |
52 | if (sysctl_ip_early_demux && !skb_dst(skb)) { | 52 | if (sysctl_ip_early_demux && !skb_dst(skb) && skb->sk == NULL) { |
53 | const struct inet6_protocol *ipprot; | 53 | const struct inet6_protocol *ipprot; |
54 | 54 | ||
55 | ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); | 55 | ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); |