diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clientloop.c b/clientloop.c index ba53de483..38ff614a9 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clientloop.c,v 1.183 2007/11/03 00:36:14 djm Exp $ */ | 1 | /* $OpenBSD: clientloop.c,v 1.184 2007/12/28 15:32:24 dtucker 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 |
@@ -465,6 +465,12 @@ client_check_window_change(void) | |||
465 | } | 465 | } |
466 | 466 | ||
467 | static void | 467 | static void |
468 | client_global_keepalive(int type, u_int32_t seq, void *ctxt) | ||
469 | { | ||
470 | server_alive_timeouts = 0; | ||
471 | } | ||
472 | |||
473 | static void | ||
468 | client_global_request_reply(int type, u_int32_t seq, void *ctxt) | 474 | client_global_request_reply(int type, u_int32_t seq, void *ctxt) |
469 | { | 475 | { |
470 | server_alive_timeouts = 0; | 476 | server_alive_timeouts = 0; |
@@ -2076,6 +2082,8 @@ client_init_dispatch_20(void) | |||
2076 | /* global request reply messages */ | 2082 | /* global request reply messages */ |
2077 | dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply); | 2083 | dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply); |
2078 | dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply); | 2084 | dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply); |
2085 | dispatch_set(SSH2_MSG_IGNORE, &client_global_keepalive); | ||
2086 | dispatch_set(SSH2_MSG_UNIMPLEMENTED, &client_global_keepalive); | ||
2079 | } | 2087 | } |
2080 | static void | 2088 | static void |
2081 | client_init_dispatch_13(void) | 2089 | client_init_dispatch_13(void) |