mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
TCP: Fix tcp_findlistner() in dual stack mode
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
This commit is contained in:
@@ -235,7 +235,11 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
|
||||
|
||||
/* Find the listener for this connection. */
|
||||
|
||||
#if defined(CONFIG_NET_IPv4) && defined(CONFIG_NET_IPv6)
|
||||
listener = tcp_findlistener(conn->lport, conn->domain);
|
||||
#else
|
||||
listener = tcp_findlistener(conn->lport);
|
||||
#endif
|
||||
if (listener != NULL)
|
||||
{
|
||||
/* We call tcp_callback() for the connection with
|
||||
|
||||
Reference in New Issue
Block a user