summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sock_exec.c2
1 files changed, 1 insertions, 1 deletions
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;
}