From 5c35bab26ce5994a8c833ba4c69c612f08973d25 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 12 May 2017 20:31:11 +0200 Subject: [PATCH] getsockopt: invalid type used to check for UDP --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index d3511458..73aecf02 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -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; }