diff options
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index 74dd109598..fd6895237c 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -413,7 +413,7 @@ KResult LocalSocket::getsockopt(OpenFileDescription& description, int level, int default: return EINVAL; } - break; + VERIFY_NOT_REACHED(); } default: return Socket::getsockopt(description, level, option, value, value_size); diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index 5450bf30e0..e49f6f530a 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -531,8 +531,8 @@ void handle_tcp(IPv4Packet const& ipv4_packet, Time const& packet_timestamp) socket->set_state(TCPSocket::State::Closed); return; } + VERIFY_NOT_REACHED(); - return; case TCPFlags::SYN: dbgln("handle_tcp: ignoring SYN for partially established connection"); return; |