Skip to content

Commit

Permalink
stream: check debug check for multi-SYN/ACK in TFO
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Apr 20, 2023
1 parent e61673c commit 89c9471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stream-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,10 @@ static void TcpStateQueueInitFromPktSynAck(const Packet *p, TcpStateQueue *q)
{
#if defined(DEBUG_VALIDATION) || defined(DEBUG)
const TcpSession *ssn = p->flow->protoctx;
BUG_ON(ssn->state != TCP_SYN_SENT);
if ((ssn->flags & STREAMTCP_FLAG_TCP_FAST_OPEN) == 0)
BUG_ON(ssn->state != TCP_SYN_SENT);
else
BUG_ON(ssn->state != TCP_ESTABLISHED);
#endif
memset(q, 0, sizeof(*q));

Expand Down

0 comments on commit 89c9471

Please sign in to comment.