diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c index b1fcd7ca8..254f5df2f 100644 --- a/channels.c +++ b/channels.c | |||
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: channels.c,v 1.79 2000/12/29 22:19:13 markus Exp $"); | 43 | RCSID("$OpenBSD: channels.c,v 1.80 2001/01/08 22:03:23 markus Exp $"); |
44 | 44 | ||
45 | #include "ssh.h" | 45 | #include "ssh.h" |
46 | #include "packet.h" | 46 | #include "packet.h" |
@@ -1743,7 +1743,7 @@ channel_connect_to(const char *host, u_short host_port) | |||
1743 | error("socket: %.100s", strerror(errno)); | 1743 | error("socket: %.100s", strerror(errno)); |
1744 | continue; | 1744 | continue; |
1745 | } | 1745 | } |
1746 | if (fcntl(sock, F_SETFL, O_NDELAY) < 0) | 1746 | if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0) |
1747 | fatal("connect_to: F_SETFL: %s", strerror(errno)); | 1747 | fatal("connect_to: F_SETFL: %s", strerror(errno)); |
1748 | /* Connect to the host/port. */ | 1748 | /* Connect to the host/port. */ |
1749 | if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && | 1749 | if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |