net: ipv6: Add missing break into IPv6 protocol handler
IPv6 protocol handler is not terminated with a break statment. It can lead to running unexpected code. Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
f365971229
commit
0d6d5a4aa6
@ -1269,6 +1269,7 @@ void net_process_received_packet(uchar *in_packet, int len)
|
|||||||
#if IS_ENABLED(CONFIG_IPV6)
|
#if IS_ENABLED(CONFIG_IPV6)
|
||||||
case PROT_IP6:
|
case PROT_IP6:
|
||||||
net_ip6_handler(et, (struct ip6_hdr *)ip, len);
|
net_ip6_handler(et, (struct ip6_hdr *)ip, len);
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
case PROT_IP:
|
case PROT_IP:
|
||||||
debug_cond(DEBUG_NET_PKT, "Got IP\n");
|
debug_cond(DEBUG_NET_PKT, "Got IP\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user