Kernel: Fix TCP closing state machine

This commit is contained in:
Bananymous 2025-04-21 20:02:32 +03:00
parent 5305f962c0
commit 1c44d24b76
1 changed files with 2 additions and 2 deletions

View File

@ -531,9 +531,9 @@ namespace Kernel
break; break;
if ((header.flags & (FIN | ACK)) == (FIN | ACK)) if ((header.flags & (FIN | ACK)) == (FIN | ACK))
m_next_state = State::TimeWait; m_next_state = State::TimeWait;
if (header.flags & FIN) else if (header.flags & FIN)
m_next_state = State::Closing; m_next_state = State::Closing;
if (header.flags & ACK) else if (header.flags & ACK)
m_state = State::FinWait2; m_state = State::FinWait2;
else else
m_next_flags = ACK; m_next_flags = ACK;