summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/clientloop.c b/clientloop.c
index 88dfb1f32..4c5108199 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.175 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.176 2006/10/11 12:38:03 markus 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
@@ -464,8 +464,10 @@ client_global_request_reply(int type, u_int32_t seq, void *ctxt)
464static void 464static void
465server_alive_check(void) 465server_alive_check(void)
466{ 466{
467 if (++server_alive_timeouts > options.server_alive_count_max) 467 if (++server_alive_timeouts > options.server_alive_count_max) {
468 packet_disconnect("Timeout, server not responding."); 468 logit("Timeout, server not responding.");
469 cleanup_exit(255);
470 }
469 packet_start(SSH2_MSG_GLOBAL_REQUEST); 471 packet_start(SSH2_MSG_GLOBAL_REQUEST);
470 packet_put_cstring("keepalive@openssh.com"); 472 packet_put_cstring("keepalive@openssh.com");
471 packet_put_char(1); /* boolean: want reply */ 473 packet_put_char(1); /* boolean: want reply */