sockets.c, lwip_sendto(): Remove check whether IP address matches socket type. Is checked in lower layers anyway.
diff --git a/src/api/sockets.c b/src/api/sockets.c
index ba8d18b..9726f0c 100644
--- a/src/api/sockets.c
+++ b/src/api/sockets.c
@@ -1107,12 +1107,6 @@
 #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;