View | Details | Raw Unified | Return to bug 1307 | Differences between
and this patch

Collapse All | Expand All

(-)clientloop.c (+8 lines)
Lines 455-460 client_check_window_change(void) Link Here
455
}
455
}
456
456
457
static void
457
static void
458
client_global_keepalive(int type, u_int32_t seq, void *ctxt)
459
{
460
	server_alive_timeouts = 0;
461
}
462
463
static void
458
client_global_request_reply(int type, u_int32_t seq, void *ctxt)
464
client_global_request_reply(int type, u_int32_t seq, void *ctxt)
459
{
465
{
460
	server_alive_timeouts = 0;
466
	server_alive_timeouts = 0;
Lines 2002-2007 client_init_dispatch_20(void) Link Here
2002
	/* global request reply messages */
2008
	/* global request reply messages */
2003
	dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply);
2009
	dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply);
2004
	dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply);
2010
	dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply);
2011
	dispatch_set(SSH2_MSG_IGNORE, &client_global_keepalive);
2012
	dispatch_set(SSH2_MSG_UNIMPLEMENTED, &client_global_keepalive);
2005
}
2013
}
2006
static void
2014
static void
2007
client_init_dispatch_13(void)
2015
client_init_dispatch_13(void)
(-)packet.c (-6 / +5 lines)
Lines 967-975 packet_read_expect(int expected_type) Link Here
967
 * packet_process_incoming.  If so, reads the packet; otherwise returns
967
 * packet_process_incoming.  If so, reads the packet; otherwise returns
968
 * SSH_MSG_NONE.  This does not wait for data from the connection.
968
 * SSH_MSG_NONE.  This does not wait for data from the connection.
969
 *
969
 *
970
 * SSH_MSG_DISCONNECT is handled specially here.  Also,
970
 * SSH_MSG_DISCONNECT is handled specially here.  Also, SSH_MSG_IGNORE
971
 * SSH_MSG_IGNORE messages are skipped by this function and are never returned
971
 * messages are skipped by this function and are never returned
972
 * to higher levels.
972
 * to higher levels, although SSH2_MSG_IGNORE are since they are needed
973
 * for keepalives.
973
 */
974
 */
974
975
975
static int
976
static int
Lines 1194-1201 packet_read_poll_seqnr(u_int32_t *seqnr_ Link Here
1194
			if (type)
1195
			if (type)
1195
				DBG(debug("received packet type %d", type));
1196
				DBG(debug("received packet type %d", type));
1196
			switch (type) {
1197
			switch (type) {
1197
			case SSH2_MSG_IGNORE:
1198
				break;
1199
			case SSH2_MSG_DEBUG:
1198
			case SSH2_MSG_DEBUG:
1200
				packet_get_char();
1199
				packet_get_char();
1201
				msg = packet_get_string(NULL);
1200
				msg = packet_get_string(NULL);
Lines 1216-1222 packet_read_poll_seqnr(u_int32_t *seqnr_ Link Here
1216
				seqnr = packet_get_int();
1215
				seqnr = packet_get_int();
1217
				debug("Received SSH2_MSG_UNIMPLEMENTED for %u",
1216
				debug("Received SSH2_MSG_UNIMPLEMENTED for %u",
1218
				    seqnr);
1217
				    seqnr);
1219
				break;
1218
				/* FALLTHROUGH */
1220
			default:
1219
			default:
1221
				return type;
1220
				return type;
1222
			}
1221
			}
(-)serverloop.c (+2 lines)
Lines 1193-1198 server_init_dispatch_20(void) Link Here
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
}

Return to bug 1307