channels: don't send SSH2 packets on SSH1 !

This commit is contained in:
Aris Adamantiadis
2011-09-14 22:35:12 +02:00
parent 058bb0f4ea
commit 9180bfffcd

View File

@@ -331,6 +331,13 @@ static int grow_window(ssh_session session, ssh_channel channel, int minimumsize
uint32_t new_window = minimumsize > WINDOWBASE ? minimumsize : WINDOWBASE;
enter_function();
#ifdef WITH_SSH1
if (session->version == 1){
channel->remote_window = new_window;
leave_function();
return SSH_OK;
}
#endif
if(new_window <= channel->local_window){
ssh_log(session,SSH_LOG_PROTOCOL,
"growing window (channel %d:%d) to %d bytes : not needed (%d bytes)",