From 3be6258912939fb538d7bcb492483ae2ab52391b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 24 Mar 2012 15:23:02 +0100 Subject: lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent. --- source3/lib/sock_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/sock_exec.c') diff --git a/source3/lib/sock_exec.c b/source3/lib/sock_exec.c index 419d60d05c..403b38b188 100644 --- a/source3/lib/sock_exec.c +++ b/source3/lib/sock_exec.c @@ -70,7 +70,7 @@ static int socketpair_tcp(int fd[2]) close(listener); if (connect_done == 0) { - if (connect(fd[1], (struct sockaddr *)&sock, salen) != 0 + if (connect(fd[1], (struct sockaddr *)&sock, socklen) != 0 && errno != EISCONN) goto failed; } -- cgit