From 2f83a7294d0d0904d72839843a80531769525d59 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 19 Apr 2017 07:45:04 +0200 Subject: Create more sockets with SOCK_CLOEXEC [BZ #15722] --- nis/nis_findserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nis') diff --git a/nis/nis_findserv.c b/nis/nis_findserv.c index 77f3c7c3ce..8e01164e3d 100644 --- a/nis/nis_findserv.c +++ b/nis/nis_findserv.c @@ -142,7 +142,7 @@ __nis_findfastest_with_timeout (dir_binding *bind, } /* Create RPC handle */ - sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); + sock = socket (AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP); clnt = clntudp_create (&saved_sin, NIS_PROG, NIS_VERSION, *timeout, &sock); if (clnt == NULL) { -- cgit 1.4.1