mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
Kernel: Don't respond to TCP RST packets
As seen with GitHub Pages and probably lots of other hosts this might cause a loop if the peer decides to respond to our RST packet again.
This commit is contained in:
parent
0bf867bb9a
commit
c17f9adb12
Notes:
sideshowbarker
2024-07-18 05:33:46 +09:00
Author: https://github.com/gunnarbeutner
Commit: c17f9adb12
Pull-request: https://github.com/SerenityOS/serenity/pull/9485
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ void handle_tcp(IPv4Packet const& ipv4_packet, Time const& packet_timestamp)
|
|||
dbgln_if(TCP_DEBUG, "handle_tcp: looking for socket; tuple={}", tuple.to_string());
|
||||
|
||||
auto socket = TCPSocket::from_tuple(tuple);
|
||||
if (!socket) {
|
||||
if (!socket && !tcp_packet.has_rst()) {
|
||||
dbgln("handle_tcp: No TCP socket for tuple {}. Sending RST.", tuple.to_string());
|
||||
send_tcp_rst(ipv4_packet, tcp_packet, adapter);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue