mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
net/tcp: sanity check for the listen address
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
+3
-2
@@ -250,9 +250,10 @@ 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);
|
||||
listener = tcp_findlistener(&conn->u, conn->lport,
|
||||
conn->domain);
|
||||
#else
|
||||
listener = tcp_findlistener(conn->lport);
|
||||
listener = tcp_findlistener(&conn->u, conn->lport);
|
||||
#endif
|
||||
if (listener != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user