diff options
Diffstat (limited to 'gnu/dist/postfix/src/util/inet_connect.c')
| -rw-r--r-- | gnu/dist/postfix/src/util/inet_connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/dist/postfix/src/util/inet_connect.c b/gnu/dist/postfix/src/util/inet_connect.c index 152e498461e..3c76734cdda 100644 --- a/gnu/dist/postfix/src/util/inet_connect.c +++ b/gnu/dist/postfix/src/util/inet_connect.c @@ -63,6 +63,7 @@ #include "find_inet.h" #include "inet_util.h" #include "iostuff.h" +#include "sane_connect.h" #include "connect.h" #include "timed_connect.h" @@ -114,7 +115,7 @@ int inet_connect(const char *addr, int block_mode, int timeout) */ else { non_blocking(sock, block_mode); - if (connect(sock, (struct sockaddr *) & sin, sizeof(sin)) < 0 + if (sane_connect(sock, (struct sockaddr *) & sin, sizeof(sin)) < 0 && errno != EINPROGRESS) { close(sock); return (-1); |
