summaryrefslogtreecommitdiff
path: root/ssh-keyscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r--ssh-keyscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index c4a2414b1..01615b5c3 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$OpenBSD: ssh-keyscan.c,v 1.48 2004/06/13 12:53:24 djm Exp $"); 10RCSID("$OpenBSD: ssh-keyscan.c,v 1.49 2004/06/14 01:44:39 djm Exp $");
11 11
12#include "openbsd-compat/sys-queue.h" 12#include "openbsd-compat/sys-queue.h"
13 13
@@ -397,8 +397,8 @@ tcpconnect(char *host)
397 error("socket: %s", strerror(errno)); 397 error("socket: %s", strerror(errno));
398 continue; 398 continue;
399 } 399 }
400 if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) 400 if (set_nonblock(s) == -1)
401 fatal("F_SETFL: %s", strerror(errno)); 401 fatal("%s: set_nonblock(%d)", __func__, s);
402 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0 && 402 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0 &&
403 errno != EINPROGRESS) 403 errno != EINPROGRESS)
404 error("connect (`%s'): %s", host, strerror(errno)); 404 error("connect (`%s'): %s", host, strerror(errno));