mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
getsockopt: invalid type used to check for UDP
This commit is contained in:
parent
e80b2eb4cf
commit
5c35bab26c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user