use SOCK_CLOEXEC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23517 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -577,7 +577,7 @@ change_password_loop (krb5_context context,
|
||||
for (a = ai; !done && a != NULL; a = a->ai_next) {
|
||||
int replied = 0;
|
||||
|
||||
sock = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
|
||||
sock = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
|
||||
if (sock < 0)
|
||||
continue;
|
||||
rk_cloexec(sock);
|
||||
|
Reference in New Issue
Block a user