mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08: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 */
|
/* The option flags */
|
||||||
case SO_BROADCAST:
|
case SO_BROADCAST:
|
||||||
if (NETCONNTYPE_GROUP(sock->conn->type) != SOCK_DGRAM) {
|
if (NETCONNTYPE_GROUP(sock->conn->type) != NETCONN_UDP) {
|
||||||
done_socket(sock);
|
done_socket(sock);
|
||||||
return ENOPROTOOPT;
|
return ENOPROTOOPT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user