diff options
-rw-r--r-- | sysdep/unix/io.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 814fa1ec..bdad4ab9 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1572,10 +1572,11 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen) if (connect(fd, (struct sockaddr *) &sa, sizeof(sa.sun_family) + namelen) >= 0) sk_unix_connected(s); - else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS && - errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH) - ERR2("connect"); - break; + else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS && + errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH) + { + ERR2("connect"); + } log(L_TRACE "sk_connect_unix 5"); |