summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 1fb1092c8..97c1fd31b 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.204 2004/06/13 15:03:02 djm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.205 2004/06/14 01:44:38 djm Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2509,8 +2509,8 @@ connect_to(const char *host, u_short port)
2509 verbose("socket: %.100s", strerror(errno)); 2509 verbose("socket: %.100s", strerror(errno));
2510 continue; 2510 continue;
2511 } 2511 }
2512 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0) 2512 if (set_nonblock(sock) == -1)
2513 fatal("connect_to: F_SETFL: %s", strerror(errno)); 2513 fatal("%s: set_nonblock(%d)", __func__, sock);
2514 if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && 2514 if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 &&
2515 errno != EINPROGRESS) { 2515 errno != EINPROGRESS) {
2516 error("connect_to %.100s port %s: %.100s", ntop, strport, 2516 error("connect_to %.100s port %s: %.100s", ntop, strport,