summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-09-23 18:49:28 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-09-23 18:49:28 +1000
commitd640322dd83423ee78cea4d576ea29395454dabd (patch)
tree545c12a236b0b9a6b33093e16ae577128a7ed581 /sshconnect.c
parentefa09bf250909dca709deb74402ff6a8e86cc3c1 (diff)
- markus@cvs.openbsd.org 2003/09/18 07:52:54
[sshconnect.c] missing {}; bug #656; jclonguet at free.fr
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;