aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Mitrofanov <v.v.mitrofanov@yadro.com>2022-12-06 10:08:16 +0300
committerTom Rini <trini@konsulko.com>2022-12-22 10:40:35 -0500
commit980876413b4d6509f34ff803520686e0e92ae848 (patch)
treeb223f3ac66e7d18b3e2494a268763f752d24c6d6
parentc73dc698615bf917fd2588a2725de74d3d91b26f (diff)
downloadu-boot-980876413b4d6509f34ff803520686e0e92ae848.zip
u-boot-980876413b4d6509f34ff803520686e0e92ae848.tar.gz
u-boot-980876413b4d6509f34ff803520686e0e92ae848.tar.bz2
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>
-rw-r--r--net/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index 1c39acc..57da9bd 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1269,6 +1269,7 @@ void net_process_received_packet(uchar *in_packet, int len)
#if IS_ENABLED(CONFIG_IPV6)
case PROT_IP6:
net_ip6_handler(et, (struct ip6_hdr *)ip, len);
+ break;
#endif
case PROT_IP:
debug_cond(DEBUG_NET_PKT, "Got IP\n");