sockets.c, lwip_sendto(): Remove check whether IP address matches socket type. Is checked in lower layers anyway.

This commit is contained in:
Dirk Ziegelmeier 2016-10-31 19:29:26 +01:00
parent 2f37dc0606
commit 1dd97e7d53

View File

@ -1107,12 +1107,6 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
#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? */
LWIP_ASSERT("lwip_sendto: size must fit in u16_t", size <= 0xffff);
short_size = (u16_t)size;