put SOCK_CLOEXEC in the right argument, from Harald Barth

This commit is contained in:
Love Hornquist Astrand
2010-01-25 23:01:09 -08:00
parent 4038832098
commit deee0bbad9

View File

@@ -288,7 +288,7 @@ send_via_proxy (krb5_context context,
return krb5_eai_to_heim_errno(ret, errno);
for (a = ai; a != NULL; a = a->ai_next) {
s = socket (a->ai_family, a->ai_socktype, a->ai_protocol | SOCK_CLOEXEC);
s = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
if (s < 0)
continue;
rk_cloexec(s);