net/icmp: fix build break if enable NET_ALLOC_CONNS

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-01-17 11:47:03 +08:00 committed by Xiang Xiao
parent 676d35f007
commit 0d7f12c489
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}

View File

@ -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);
}
}
}