diff options
-rw-r--r-- | source3/lib/util_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 7f8b83ec7d..d7bef0697e 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1185,7 +1185,8 @@ static int socketpair_tcp(int fd[2]) close(listener); if (connect_done == 0) { - if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) != 0) goto failed; + if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) != 0 + && errno != EISCONN) goto failed; } set_blocking(fd[1], 1); |