Commit 348f821c authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[PATCH] IPv6: Fix BUG When Received Unknown Protocol.

parent 7405713a
......@@ -182,10 +182,11 @@ static inline int ip6_input_finish(struct sk_buff *skb)
if (!raw_sk) {
IP6_INC_STATS_BH(Ip6InUnknownProtos);
icmpv6_param_prob(skb, ICMPV6_UNK_NEXTHDR, nhoff);
} else
} else {
IP6_INC_STATS_BH(Ip6InDelivers);
kfree_skb(skb);
}
}
return 0;
......
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