summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 3d6cc375a..80b45c79e 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.154 2003/11/21 11:57:03 djm Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.155 2003/12/09 21:53:37 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -415,8 +415,8 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
415 415
416 debug("Connection established."); 416 debug("Connection established.");
417 417
418 /* Set keepalives if requested. */ 418 /* Set SO_KEEPALIVE if requested. */
419 if (options.keepalives && 419 if (options.tcp_keep_alive &&
420 setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, 420 setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on,
421 sizeof(on)) < 0) 421 sizeof(on)) < 0)
422 error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno)); 422 error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));