mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-15 22:49:16 +00:00
ip_addr_set_any does not work on pointers...
This commit is contained in:
parent
4b0be4a477
commit
2c60a48d02
@ -844,7 +844,7 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
|
|||||||
inet_addr_to_ipaddr_p(remote_addr, &to_in->sin_addr);
|
inet_addr_to_ipaddr_p(remote_addr, &to_in->sin_addr);
|
||||||
remote_port = ntohs(to_in->sin_port);
|
remote_port = ntohs(to_in->sin_port);
|
||||||
} else {
|
} else {
|
||||||
ip_addr_set_any(&remote_addr);
|
remote_addr = IP_ADDR_ANY;
|
||||||
remote_port = 0;
|
remote_port = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user