Skip to content

Commit 795dc8c

Browse files
author
wenquan1
committed
net/tcp: fix send RST bug when receive syn retransmit in syn-rcvd state
Signed-off-by: wenquan1 <[email protected]>
1 parent 6265039 commit 795dc8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

net/tcp/tcp_input.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,13 +878,11 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
878878
DEBUGASSERT(conn->crefs == 1);
879879
conn->crefs = 0;
880880
tcp_free(conn);
881-
return;
881+
goto drop;
882882
}
883883
}
884-
else
885-
{
886-
goto found;
887-
}
884+
885+
goto found;
888886
}
889887

890888
/* If we didn't find an active connection that expected the packet,

0 commit comments

Comments
 (0)