summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 40d22800f..f29ac8088 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.147 2003/06/29 12:44:38 markus Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.148 2003/09/18 07:52:54 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -271,9 +271,10 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr,
271 optval = 0; 271 optval = 0;
272 optlen = sizeof(optval); 272 optlen = sizeof(optval);
273 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, 273 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval,
274 &optlen) == -1) 274 &optlen) == -1) {
275 debug("getsockopt: %s", strerror(errno)); 275 debug("getsockopt: %s", strerror(errno));
276 break; 276 break;
277 }
277 if (optval != 0) { 278 if (optval != 0) {
278 errno = optval; 279 errno = optval;
279 break; 280 break;