summaryrefslogtreecommitdiff
path: root/gnu/dist/postfix/src/util/inet_connect.c
diff options
context:
space:
mode:
authorheas <heas@NetBSD.org>2004-03-27 16:31:19 +0000
committerheas <heas@NetBSD.org>2004-03-27 16:31:19 +0000
commitf32166d8a91a2c82316a00a40ee4842e27ec245d (patch)
tree23fa8e0342da03f7dc80d4e582d0351d2a2f3724 /gnu/dist/postfix/src/util/inet_connect.c
parent5f1ffa71fcd47bffcc5eb3f23221d6570b558e8f (diff)
merge from 2.0.19 import
Diffstat (limited to 'gnu/dist/postfix/src/util/inet_connect.c')
-rw-r--r--gnu/dist/postfix/src/util/inet_connect.c3
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);