mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
channel: fix infinite loop in channel_write_common
BUG: https://red.libssh.org/issues/130 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
5da02d6de2
commit
7ab0e3fe62
@@ -1327,7 +1327,9 @@ int channel_write_common(ssh_channel channel, const void *data,
|
|||||||
"Wait for a growing window message...");
|
"Wait for a growing window message...");
|
||||||
rc = ssh_handle_packets_termination(session, SSH_TIMEOUT_DEFAULT,
|
rc = ssh_handle_packets_termination(session, SSH_TIMEOUT_DEFAULT,
|
||||||
ssh_channel_waitwindow_termination,channel);
|
ssh_channel_waitwindow_termination,channel);
|
||||||
if (rc == SSH_ERROR || !ssh_channel_waitwindow_termination(channel))
|
if (rc == SSH_ERROR ||
|
||||||
|
!ssh_channel_waitwindow_termination(channel) ||
|
||||||
|
channel->session->session_state == SSH_SESSION_STATE_ERROR)
|
||||||
goto out;
|
goto out;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user