+7
−0
+15
−4
Loading
Do this both for SSH2_MSG_CHANNEL_OPEN and for SSH2_MSG_CHANNEL_OPEN_CONFIRMATION. Using the max packet size 0 would lead to an infinite loop in channel_write_common. Originally reported by Rinku Das on on 23th February. Independently reported by Yi Lin on 26th February and Haruto Kimura on 22nd March. We do not consider this as a security issue as connecting to untrusted servers on the internet brings much worse security consequences than hanging your clinet. Signed-off-by:Pavol Žáčik <pzacik@redhat.com> Reviewed-by:
Jakub Jelen <jjelen@redhat.com> (cherry picked from commit 44b186fa)