summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-12-29 02:45:07 +1100
committerDarren Tucker <dtucker@zip.com.au>2007-12-29 02:45:07 +1100
commitd6725f04e296135732e9366a762222a3f3fd801f (patch)
tree6d86f4912d24a648bdef8301a93dd72cda60d6fd /serverloop.c
parent4abde771b73f3a54780ff3dedf59f57f94298870 (diff)
- dtucker@cvs.openbsd.org 2007/12/28 15:32:24
[clientloop.c serverloop.c packet.c] Make SSH2_MSG_UNIMPLEMENTED and SSH2_MSG_IGNORE messages reset the ServerAlive and ClientAlive timers. Prevents dropping a connection when these are enabled but the peer does not support our keepalives. bz #1307, ok djm@.
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/serverloop.c b/serverloop.c
index 7e373f01b..81888d0e5 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.c,v 1.145 2006/10/11 12:38:03 markus Exp $ */ 1/* $OpenBSD: serverloop.c,v 1.146 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
@@ -1193,6 +1193,8 @@ server_init_dispatch_20(void)
1193 dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &server_input_keep_alive); 1193 dispatch_set(SSH2_MSG_CHANNEL_FAILURE, &server_input_keep_alive);
1194 dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &server_input_keep_alive); 1194 dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &server_input_keep_alive);
1195 dispatch_set(SSH2_MSG_REQUEST_FAILURE, &server_input_keep_alive); 1195 dispatch_set(SSH2_MSG_REQUEST_FAILURE, &server_input_keep_alive);
1196 dispatch_set(SSH2_MSG_IGNORE, &server_input_keep_alive);
1197 dispatch_set(SSH2_MSG_UNIMPLEMENTED, &server_input_keep_alive);
1196 /* rekeying */ 1198 /* rekeying */
1197 dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit); 1199 dispatch_set(SSH2_MSG_KEXINIT, &kex_input_kexinit);
1198} 1200}