getsockopt: invalid type used to check for UDP

This commit is contained in:
goldsimon 2017-05-12 20:31:11 +02:00
parent e80b2eb4cf
commit 5c35bab26c

View File

@ -2448,7 +2448,7 @@ lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *opt
/* The option flags */
case SO_BROADCAST:
if (NETCONNTYPE_GROUP(sock->conn->type) != SOCK_DGRAM) {
if (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP) {
done_socket(sock);
return ENOPROTOOPT;
}