diff options
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c index 0e195a31d..cddf22e1c 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.c,v 1.291 2018/01/23 05:27:21 djm Exp $ */ | 1 | /* $OpenBSD: sshconnect.c,v 1.292 2018/01/23 18:33:49 stsp Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -453,10 +453,11 @@ ssh_connect_direct(struct ssh *ssh, const char *host, struct addrinfo *aitop, | |||
453 | 453 | ||
454 | /* Create a socket for connecting. */ | 454 | /* Create a socket for connecting. */ |
455 | sock = ssh_create_socket(needpriv, ai); | 455 | sock = ssh_create_socket(needpriv, ai); |
456 | if (sock < 0) | 456 | if (sock < 0) { |
457 | /* Any error is already output */ | 457 | /* Any error is already output */ |
458 | errno = 0; | 458 | errno = 0; |
459 | continue; | 459 | continue; |
460 | } | ||
460 | 461 | ||
461 | if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen, | 462 | if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen, |
462 | timeout_ms) >= 0) { | 463 | timeout_ms) >= 0) { |