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 40d22800..f29ac808 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.147 2003/06/29 12:44:38 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.148 2003/09/18 07:52:54 markus Exp $");
#include <openssl/bn.h>
@@ -271,9 +271,10 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr,
optval = 0;
optlen = sizeof(optval);
if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval,
- &optlen) == -1)
+ &optlen) == -1) {
debug("getsockopt: %s", strerror(errno));
break;
+ }
if (optval != 0) {
errno = optval;
break;