From 3c012ef3fc71cd8579498a12400ada0c1e45093a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 27 Jul 2008 12:08:03 +0000 Subject: [PATCH] close-on-exec git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23445 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/changepw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/krb5/changepw.c b/lib/krb5/changepw.c index fc783f7f6..2ce78c6fa 100644 --- a/lib/krb5/changepw.c +++ b/lib/krb5/changepw.c @@ -580,6 +580,7 @@ change_password_loop (krb5_context context, sock = socket (a->ai_family, a->ai_socktype, a->ai_protocol); if (sock < 0) continue; + rk_cloexec(sock); ret = connect(sock, a->ai_addr, a->ai_addrlen); if (ret < 0) {