summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 9b5954b..22b4103 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -1589,7 +1589,7 @@ is_ifdisabled(char *name)
struct in6_ndireq nd;
int fd;
- if ((fd = _socket(AF_INET6, SOCK_DGRAM, 0)) < 0)
+ if ((fd = _socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0)) < 0)
return -1;
memset(&nd, 0, sizeof(nd));
strlcpy(nd.ifname, name, sizeof(nd.ifname));
OpenPOWER on IntegriCloud