diff --git a/net/tcp/tcp_timer.c b/net/tcp/tcp_timer.c index c0b774c043..eb35e4a211 100644 --- a/net/tcp/tcp_timer.c +++ b/net/tcp/tcp_timer.c @@ -553,7 +553,7 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn) conn->crefs = 0; tcp_free(conn); - goto done; + return; } /* Otherwise, check for a timeout on an established connection.