mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/lwip: fix sending from socket bound to anyaddr
This commit is contained in:
parent
f590c18f7f
commit
d646a71e71
@ -641,7 +641,8 @@ ssize_t lwip_sock_sendv(struct netconn *conn, const iolist_t *snips,
|
||||
DEBUG("\"\n");
|
||||
}
|
||||
uint16_t netif = lwip_sock_bind_addr_to_netif(&addr);
|
||||
if (remote->netif != netif) {
|
||||
if ((remote->netif != netif)
|
||||
&& (netif != SOCK_ADDR_ANY_NETIF)) {
|
||||
DEBUG("[lwip_sock_sendv] lwip_sock_bind_addr_to_netif() "
|
||||
"returned %u, but expected %u\n",
|
||||
(unsigned)netif, (unsigned)remote->netif);
|
||||
|
Loading…
Reference in New Issue
Block a user