From e37ef4839e7901a22360207d2c64ca8f6aa392c2 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 25 Jan 2010 23:01:09 -0800 Subject: [PATCH] put SOCK_CLOEXEC in the right argument, from Harald Barth --- lib/krb5/send_to_kdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index 0efe14eb4..4dc934408 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -286,7 +286,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); -- 2.11.4.GIT