mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
net/tcp: fix send RST bug when receive syn retransmit in syn-rcvd state
Fix send RST bug when receive syn retransmit in syn-rcvd state Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
This commit is contained in:
+3
-5
@@ -876,13 +876,11 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
|
||||
DEBUGASSERT(conn->crefs == 1);
|
||||
conn->crefs = 0;
|
||||
tcp_free(conn);
|
||||
return;
|
||||
goto drop;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
goto found;
|
||||
}
|
||||
|
||||
goto found;
|
||||
}
|
||||
|
||||
/* If we didn't find an active connection that expected the packet,
|
||||
|
||||
Reference in New Issue
Block a user