diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-04-19 07:45:04 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-04-19 07:45:04 +0200 |
commit | 2f83a7294d0d0904d72839843a80531769525d59 (patch) | |
tree | 709774c38a94b5b99735121ce1e5979605fa0ce0 /resolv/res_hconf.c | |
parent | e92030239abb4038d4f915d47021d6c037239309 (diff) | |
download | glibc-2f83a7294d0d0904d72839843a80531769525d59.tar.gz glibc-2f83a7294d0d0904d72839843a80531769525d59.tar.xz glibc-2f83a7294d0d0904d72839843a80531769525d59.zip |
Create more sockets with SOCK_CLOEXEC [BZ #15722]
Diffstat (limited to 'resolv/res_hconf.c')
-rw-r--r-- | resolv/res_hconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index d0d116d308..8fc06e9abd 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -388,7 +388,7 @@ _res_hconf_reorder_addrs (struct hostent *hp) /* Initialize interface table. */ /* The SIOCGIFNETMASK ioctl will only work on an AF_INET socket. */ - sd = __socket (AF_INET, SOCK_DGRAM, 0); + sd = __socket (AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); if (sd < 0) return; |