diff options
author | Viacheslav Mitrofanov | 2022-12-06 10:08:16 +0300 |
---|---|---|
committer | Tom Rini | 2022-12-22 15:39:13 -0500 |
commit | 0d6d5a4aa6e04bedf87793de337c05a022268041 (patch) | |
tree | ff045c2a09154eb85e9b66b13b0e5e871069e9b9 /net | |
parent | f36597122906391afd20fd9663939f9ce4a060f4 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index 1c39acc4936..57da9bda85a 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"); |