mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
sockets.c, lwip_sendto(): Remove check whether IP address matches socket type. Is checked in lower layers anyway.
This commit is contained in:
parent
2f37dc0606
commit
1dd97e7d53
@ -1107,12 +1107,6 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
|
|||||||
#endif /* LWIP_TCP */
|
#endif /* LWIP_TCP */
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((to != NULL) && !SOCK_ADDR_TYPE_MATCH(to, sock)) {
|
|
||||||
/* sockaddr does not match socket type (IPv4/IPv6) */
|
|
||||||
sock_set_errno(sock, err_to_errno(ERR_VAL));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @todo: split into multiple sendto's? */
|
/* @todo: split into multiple sendto's? */
|
||||||
LWIP_ASSERT("lwip_sendto: size must fit in u16_t", size <= 0xffff);
|
LWIP_ASSERT("lwip_sendto: size must fit in u16_t", size <= 0xffff);
|
||||||
short_size = (u16_t)size;
|
short_size = (u16_t)size;
|
||||||
|
Loading…
Reference in New Issue
Block a user