mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
net/icmp: fix build break if enable NET_ALLOC_CONNS
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -124,7 +124,7 @@ FAR struct icmp_conn_s *icmp_alloc(void)
|
||||
{
|
||||
for (ret = 0; ret < CONFIG_NET_ICMP_NCONNS; ret++)
|
||||
{
|
||||
dq_addlast(&conn[ret].node, &g_free_retcmp_connectretons);
|
||||
dq_addlast(&conn[ret].node, &g_free_icmp_connections);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ FAR struct icmpv6_conn_s *icmpv6_alloc(void)
|
||||
{
|
||||
for (ret = 0; ret < CONFIG_NET_ICMPv6_NCONNS; ret++)
|
||||
{
|
||||
dq_addlast(&conn[i].node, &g_free_icmpv6_connections);
|
||||
dq_addlast(&conn[ret].node, &g_free_icmpv6_connections);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user