From 0d6d5a4aa6e04bedf87793de337c05a022268041 Mon Sep 17 00:00:00 2001 From: Viacheslav Mitrofanov Date: Tue, 6 Dec 2022 10:08:16 +0300 Subject: [PATCH] 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 Reviewed-by: Daniel Schwierzeck --- net/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/net.c b/net/net.c index 1c39acc493..57da9bda85 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"); -- 2.39.5