mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Fix assertions in udpecho.c
This commit is contained in:
parent
33325bbf3b
commit
ba705d3f7f
@ -51,12 +51,13 @@ udpecho_thread(void *arg)
|
||||
|
||||
#if LWIP_IPV6
|
||||
conn = netconn_new(NETCONN_UDP_IPV6);
|
||||
LWIP_ERROR("udpecho: invalid conn", (conn != NULL), return;);
|
||||
netconn_bind(conn, IP6_ADDR_ANY, 7);
|
||||
#else /* LWIP_IPV6 */
|
||||
conn = netconn_new(NETCONN_UDP);
|
||||
LWIP_ERROR("udpecho: invalid conn", (conn != NULL), return;);
|
||||
netconn_bind(conn, IP_ADDR_ANY, 7);
|
||||
#endif /* LWIP_IPV6 */
|
||||
LWIP_ERROR("udpecho: invalid conn", (conn != NULL), return;);
|
||||
|
||||
while (1) {
|
||||
err = netconn_recv(conn, &buf);
|
||||
|
Loading…
Reference in New Issue
Block a user